1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

tests, add note about the usage of a specific timezone. Closes #17448.

This commit is contained in:
Yves Senn 2014-11-05 11:27:41 +01:00
parent 3dcd1b84dd
commit 768b4ea24d

View file

@ -414,7 +414,7 @@ class StringConversionsTest < ActiveSupport::TestCase
end
def test_partial_string_to_time
with_env_tz "Europe/Moscow" do
with_env_tz "Europe/Moscow" do # use timezone which does not observe DST.
now = Time.now
assert_equal Time.local(now.year, now.month, now.day, 23, 50), "23:50".to_time
assert_equal Time.utc(now.year, now.month, now.day, 23, 50), "23:50".to_time(:utc)