Commit Graph

19 Commits

Author SHA1 Message Date
Cody Cutrer 189febba41 add additional brazil time zones
fixes CORE-638

also change time zone picker to show DST offset as well as the
base offset if they respect DST in that zone

test plan:
 * go to change your user settings, and in the time zone drop down
   you should see all 6 brazil zones.
 * ensure saving thas these zones actually persists

Change-Id: I2a31780f25f396cc79a8d5a630791646cdda8e76
Reviewed-on: https://gerrit.instructure.com/133060
Reviewed-by: Tyler Pickett <tpickett@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2017-11-28 21:31:57 +00:00
Cody Cutrer 9d3b2190ba add Philippines as a friendly time zone
closes CNVS-39780

test plan:
 * change your time zone to Philippines

Change-Id: Ief15405da51f0471c2bd10a239ef305ae2b80a18
Reviewed-on: https://gerrit.instructure.com/129722
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2017-10-18 16:58:43 +00:00
Cody Cutrer 75c7538888 drop rails 4.2
also, allow rails 5.1

Change-Id: If480c2a2c01a7578552dc70f4bdcf3a46df40e7b
Reviewed-on: https://gerrit.instructure.com/115654
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Reviewed-by: Tyler Pickett <tpickett@instructure.com>
2017-06-27 15:29:51 +00:00
Landon Wilkins 15e4932fd7 da licença part 23
add consistent license headers to all source files
(ruby, coffeescript, javascript)

except for vendor files

Change-Id: I3fbe2919d58d827f5ac53577594f719d54f2bd32
Reviewed-on: https://gerrit.instructure.com/110045
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-04-27 21:51:35 +00:00
Cody Cutrer 40aa1e36d8 define json serialization for ActiveSupport::TimeZone
to avoid serializing massive amounts of tz data into audit logs

Change-Id: If9959f461c3e5f992b29e014900bc845b2dcc4a0
Reviewed-on: https://gerrit.instructure.com/104314
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2017-03-08 16:05:46 +00:00
Cody Cutrer e04667a89f rails 5: change alias_method_chain to prepended modules
fixes CNVS-33377, CNVS-33697, CNVS-33699, CNVS-33700, CNVS-33701

Change-Id: I4ed1340a3b1472200ac59ddc4c0f7111e9418db0
Reviewed-on: https://gerrit.instructure.com/101509
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
2017-02-10 19:42:29 +00:00
Cody Cutrer cd46dcfb50 rails 5: fix TimeZone initialization
it has a new singleton ivar, and it's a different type

refs CNVS-34863

Change-Id: I780ed2becba14c4f612d2acf9053d5fc6a8f2479
Reviewed-on: https://gerrit.instructure.com/101561
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2017-02-09 21:19:41 +00:00
James Williams f23f3b0ff2 remove rails 4.0 support
Change-Id: Id1900160375644ea33badaa9d9f9185fab6b81ac
Reviewed-on: https://gerrit.instructure.com/92726
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-10-25 17:17:22 +00:00
James Williams 92d7a726e3 rails 4.2: bump rails and fix initialization
refs #CNVS-26056

Change-Id: I05385bd3e9f247dfd9d6be1a700d2cd6b9a628a6
Reviewed-on: https://gerrit.instructure.com/76761
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-04-11 15:15:06 +00:00
Cody Cutrer 85bd311e4b add Asuncion as a friendly time zone
fixes CNVS-28042

test plan:
 * change a timezone on a account; Asuncion should be in the list

Change-Id: I2b6b37267e3eb2ddc753f4748b1e3a5f2c024fc6
Reviewed-on: https://gerrit.instructure.com/74550
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2016-03-19 01:06:47 +00:00
Raphael Weiner 9a08d9d934 Move time related code into canvas_time gem
fixes CNVS-10748

Change-Id: If9015c54bf54969d8c47e5e39a372e1c5bfe158b
Reviewed-on: https://gerrit.instructure.com/32532
Reviewed-by: Raphael Weiner <instructure@pivotallabs.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: August Thornton <august@instructure.com>
2014-04-14 20:47:01 +00:00
Jacob Fugal 997e53df43 force times to UTC in json serialization
refs CNVS-7597

as part of json serialization cleanup, make sure times emitted are
always in UTC

Change-Id: Ia7abfa587aecddd9cbd9b62a4614d4a1b995c886
test-plan: N/A
Reviewed-on: https://gerrit.instructure.com/23644
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Jacob Fugal <jacob@instructure.com>
QA-Review: Jacob Fugal <jacob@instructure.com>
2013-08-29 22:38:50 +00:00
Brian Palmer 31f33164b5 remove 1.8 compatibility shims
- update the Gemfile to be 1.9 only, and raise an exception on wrong
  ruby version
- remove RUBY_VERSION checks, replacing with the applicable code
- remove the FasterCSV compatibility shim, just use CSV now

test plan: trying to bundle install on ruby 1.8 or 2.0 should raise an
exception, specs should pass, canvas should work as normal on 1.9

Change-Id: I49088e9d227c59c6d5d5acb417c2df971129474a
Reviewed-on: https://gerrit.instructure.com/19806
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
2013-05-03 01:43:52 +00:00
Jacob Fugal 043de4612e %-d instead of %e in date formatting
Change-Id: Ice15ad81e618c5acc4974e204d2c0ccba6da4486
Reviewed-on: https://gerrit.instructure.com/11379
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2012-06-07 10:19:22 -06:00
Zach Wily 5433f63b29 fixes for ruby 1.9.3
* gemfile tweaks
 * removed ruby-debug (since it's broken in 1.9.3)
 * removed colons from case statements
 * turned off whiny nils for tests (they cause a 2X perf hit)
 * added utf-8 encoding markers to files with multibyte chars
 * removed an instance of calling String#map, which no longer works
 * fixed an issue in the assets file where the yaml emitter doesn't output the
   same whitespace as it did in 1.8.7
 * fix call to .map without block
 * fix yaml engine initialization for delayed jobs (was happening too late)
 * fix rspec instafail
 * fix UserProfile#id calls
 * fix ModelCache for instance_methods now returning symbols
 * fix user_spec collection not seeing the new objects
 * fix course specs where POST lines are slightly different in 1.9
 * fix utc_datetime in the time initializer

Change-Id: Ic95dda23cb910579e2828fb448323d4fc18902a2
Reviewed-on: https://gerrit.instructure.com/10705
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Zach Wily <zach@instructure.com>
2012-05-12 14:34:23 -06:00
Jacob Fugal c0b56aa569 force dtstart in ics to utc
fixes #5953

Change-Id: I0486b3dce2dd10f0e9881dbcc224e220ad0e257d
Reviewed-on: https://gerrit.instructure.com/6192
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
2011-11-08 10:25:04 -07:00
Brian Palmer 0432c66a24 remove deprecated ruby syntax
these are syntax errors in 1.9.x

Change-Id: I7cbd66643cb371e4be9f8da0365bf1e988ee5de8
Reviewed-on: https://gerrit.instructure.com/5833
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
2011-09-27 10:28:22 -06:00
Cody Cutrer 69a10d4b5a optimize json creation and serialization
the biggie here is to dup options, so that :methods doesn't keep
compounding itself when converting a collection of objects to json

Change-Id: I501cf8c257c8fa2ffa7e15d1cf2a3fe2734c8512
Reviewed-on: https://gerrit.instructure.com/4666
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-07-14 10:46:08 -06:00
Jon Jensen 58a25bd462 preliminary i18n setup, closes #4124
* i18n key scoping for controller/model/js/etc.
 * inline English translation support
 * rdiscount gem for markdown'ed translations
 * html_safe interpolation tweaks
 * label helpers
 * crummy tweak to translate symbol keys
 * internationalized most of lib, and some plugins/messages
 * conference i18n (view/model/controller/js)

Change-Id: I42772b9e19a110efbe855dc83a681be49ec98df2
Reviewed-on: https://gerrit.instructure.com/4080
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Zach Wily <zach@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-06-06 14:19:03 -06:00