diff options
author | John Thacker <johnthacker@gmail.com> | 2021-12-30 15:14:28 -0500 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-12-30 21:20:08 +0000 |
commit | 156a958d3f545f43e8a333512118afa32ae2ae7f (patch) | |
tree | a71227ffb5b5445b4c1d25902d6fd9cc4f4fce83 /test/lua | |
parent | d5cccc53984c7320e351edc54995591c180be9fc (diff) |
wsutil: Fix time zone handling.
Time zone handling was reversed, partially due to the tests having
it backwards.
Diffstat (limited to 'test/lua')
-rw-r--r-- | test/lua/tvb.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lua/tvb.lua b/test/lua/tvb.lua index a8885fa7b9..5307b8b3e9 100644 --- a/test/lua/tvb.lua +++ b/test/lua/tvb.lua @@ -757,11 +757,11 @@ function test_proto.dissector(tvbuf,pktinfo,root) local datetimestring1 = "2013-03-01T22:14:48+00:00" -- this is 1362176088 seconds epoch time local tvb1 = ByteArray.new(datetimestring1, true):tvb("Date_Time string 1") - local datetimestring2 = " 2013-03-01T17:14:48+05:00" -- this is 1362176088 seconds epoch time + local datetimestring2 = " 2013-03-02T03:14:48+05:00" -- this is 1362176088 seconds epoch time local tvb2 = ByteArray.new(datetimestring2 .. " foobar", true):tvb("Date_Time string 2") - local datetimestring3 = " 2013-03-01T16:44+05:30" -- this is 1362176040 seconds epoch time + local datetimestring3 = " 2013-03-01T16:44-05:30" -- this is 1362176040 seconds epoch time local tvb3 = ByteArray.new(datetimestring3, true):tvb("Date_Time string 3") - local datetimestring4 = "2013-03-02T01:44:00-03:30" -- this is 1362176040 seconds epoch time + local datetimestring4 = "2013-03-02T01:44:00+03:30" -- this is 1362176040 seconds epoch time local tvb4 = ByteArray.new(datetimestring4, true):tvb("Date_Time string 4") local datetimestring5 = "2013-03-01T22:14:48Z" -- this is 1362176088 seconds epoch time local tvb5 = ByteArray.new(datetimestring5, true):tvb("Date_Time string 5") @@ -890,11 +890,11 @@ function test_proto.dissector(tvbuf,pktinfo,root) local datetimestring1 = "20130301T221448+0000" -- this is 1362176088 seconds epoch time local tvb1 = ByteArray.new(datetimestring1, true):tvb("Date_Time string 1") - local datetimestring2 = " 20130301171448+0500" -- this is 1362176088 seconds epoch time + local datetimestring2 = " 20130301171448-0500" -- this is 1362176088 seconds epoch time local tvb2 = ByteArray.new(datetimestring2 .. " foobar", true):tvb("Date_Time string 2") - local datetimestring3 = " 20130301T1644+0530" -- this is 1362176040 seconds epoch time + local datetimestring3 = " 20130301T1644-0530" -- this is 1362176040 seconds epoch time local tvb3 = ByteArray.new(datetimestring3, true):tvb("Date_Time string 3") - local datetimestring4 = "20130302 014400-0330" -- this is 1362176040 seconds epoch time + local datetimestring4 = "20130302 014400+0330" -- this is 1362176040 seconds epoch time local tvb4 = ByteArray.new(datetimestring4, true):tvb("Date_Time string 4") local datetimestring5 = "20130301T221448Z" -- this is 1362176088 seconds epoch time local tvb5 = ByteArray.new(datetimestring5, true):tvb("Date_Time string 5") |