diff options
author | Max Kellermann <max@musicpd.org> | 2019-08-19 22:38:06 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-08-19 22:44:28 +0200 |
commit | 2c35ea92bd8e40ee66204e20b99f238effc4fc91 (patch) | |
tree | 014a96726794a581bf95daa876373465885b3c30 /test | |
parent | 26e0e1d25a588861bf16f574f9b98c63d3c0aeea (diff) |
time/ISO8601: support time zone offset
Diffstat (limited to 'test')
-rw-r--r-- | test/TestISO8601.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/TestISO8601.cxx b/test/TestISO8601.cxx index 6fdc11dc8..e97798831 100644 --- a/test/TestISO8601.cxx +++ b/test/TestISO8601.cxx @@ -57,6 +57,12 @@ static constexpr struct { /* without time zone */ { "2019-02-04T16:46:41", 1549298801, std::chrono::seconds(1) }, + + /* with time zone */ + { "2019-02-04T16:46:41+02", 1549291601, std::chrono::seconds(1) }, + { "2019-02-04T16:46:41+0200", 1549291601, std::chrono::seconds(1) }, + { "2019-02-04T16:46:41+02:00", 1549291601, std::chrono::seconds(1) }, + { "2019-02-04T16:46:41-0200", 1549306001, std::chrono::seconds(1) }, }; TEST(ISO8601, Parse) |