aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/date_helper_i18n_test.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-09-22 14:50:08 -0300
committerJosé Valim <jose.valim@gmail.com>2010-09-24 15:51:29 +0200
commitf625b87f241a6a002274bd01750796985d6e0d8d (patch)
tree6dddf6118bc610d72c8f4079da902c76c48c175d /actionpack/test/template/date_helper_i18n_test.rb
parent63039b9c3356f73421b3742134959014d81973b0 (diff)
downloadrails-f625b87f241a6a002274bd01750796985d6e0d8d.tar.gz
rails-f625b87f241a6a002274bd01750796985d6e0d8d.tar.bz2
rails-f625b87f241a6a002274bd01750796985d6e0d8d.zip
These tests shouldn't depend on local time to pass or fail, we can use utc here.
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/test/template/date_helper_i18n_test.rb')
-rw-r--r--actionpack/test/template/date_helper_i18n_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/date_helper_i18n_test.rb b/actionpack/test/template/date_helper_i18n_test.rb
index 74498e4ffc..d45215acfd 100644
--- a/actionpack/test/template/date_helper_i18n_test.rb
+++ b/actionpack/test/template/date_helper_i18n_test.rb
@@ -5,7 +5,7 @@ class DateHelperDistanceOfTimeInWordsI18nTests < Test::Unit::TestCase
attr_reader :request
def setup
- @from = Time.mktime(2004, 6, 6, 21, 45, 0)
+ @from = Time.utc(2004, 6, 6, 21, 45, 0)
end
# distance_of_time_in_words