diff options
author | Max Kellermann <max@musicpd.org> | 2019-08-19 22:38:06 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-12-16 23:24:43 +0100 |
commit | 7d8b1860c315ca403560385d6b426877f2e8e46b (patch) | |
tree | 2e454c11fddac5322bfc516ed0a1cb2a905962c1 /test | |
parent | b06825829bbc71876dc8ba2c3d7acdc96e9f208e (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) |