summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-08-19 22:37:16 +0200
committerMax Kellermann <max@musicpd.org>2019-08-19 22:44:41 +0200
commitf3ed2c0a825b4eb44245b7f108f2f292e666463b (patch)
tree305420894c04ccf77767f19433df0e173f5b382d /test
parent2c35ea92bd8e40ee66204e20b99f238effc4fc91 (diff)
time/ISO8601: support omitting seconds
Diffstat (limited to 'test')
-rw-r--r--test/TestISO8601.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/TestISO8601.cxx b/test/TestISO8601.cxx
index e97798831..6b2506cce 100644
--- a/test/TestISO8601.cxx
+++ b/test/TestISO8601.cxx
@@ -58,6 +58,10 @@ static constexpr struct {
/* without time zone */
{ "2019-02-04T16:46:41", 1549298801, std::chrono::seconds(1) },
+ /* without seconds */
+ { "2019-02-04T16:46", 1549298760, std::chrono::minutes(1) },
+ { "2019-02-04T16:46Z", 1549298760, std::chrono::minutes(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) },