aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/date_helper_i18n_test.rb2
-rw-r--r--actionpack/test/template/date_helper_test.rb2
2 files changed, 2 insertions, 2 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
diff --git a/actionpack/test/template/date_helper_test.rb b/actionpack/test/template/date_helper_test.rb
index 0d9508dfe8..ea7c096b97 100644
--- a/actionpack/test/template/date_helper_test.rb
+++ b/actionpack/test/template/date_helper_test.rb
@@ -99,7 +99,7 @@ class DateHelperTest < ActionView::TestCase
end
def test_distance_in_words
- from = Time.mktime(2004, 6, 6, 21, 45, 0)
+ from = Time.utc(2004, 6, 6, 21, 45, 0)
assert_distance_of_time_in_words(from)
end