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:
parent
3dcd1b84dd
commit
768b4ea24d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue