Skip to content

Commit

Permalink
TestProperties#test_pack_VT_FILETIME : Bug fix.
Browse files Browse the repository at this point in the history
  use Time.gm not to fail due to different timezone.
  • Loading branch information
Hideo NAKAMURA committed Dec 7, 2013
1 parent 55138c0 commit f4e0f23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_properties.rb
Expand Up @@ -9,9 +9,10 @@ def setup
end

def test_pack_VT_FILETIME
filetime =
assert_equal(
'40 00 00 00 00 FD 2D ED CE 48 CE 01',
unpack_record(pack_VT_FILETIME(Time.local(2013, 5, 4, 22, 54, 42)))
unpack_record(pack_VT_FILETIME(Time.gm(2013, 5, 4, 13, 54, 42)))
)
end

Expand Down

0 comments on commit f4e0f23

Please sign in to comment.