Skip to content

Commit 97b1c0f

Browse files
sennyclaudiob
authored andcommitted
tests, add note about the usage of a specific timezone. Closes #17448.
1 parent 8fbe1fb commit 97b1c0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activesupport/test/core_ext/string_ext_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def test_string_to_time_utc_offset
317317
end
318318

319319
def test_partial_string_to_time
320-
with_env_tz "Europe/Moscow" do
320+
with_env_tz "Europe/Moscow" do # use timezone which does not observe DST.
321321
now = Time.now
322322
assert_equal Time.local(now.year, now.month, now.day, 23, 50), "23:50".to_time
323323
assert_equal Time.utc(now.year, now.month, now.day, 23, 50), "23:50".to_time(:utc)

0 commit comments

Comments
 (0)