aboutsummaryrefslogtreecommitdiff
path: root/src/tests/test-modem-helpers.c
diff options
context:
space:
mode:
authorFrederic Martinsons <frederic.martinsons@sigfox.com>2021-10-15 17:02:20 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-10-22 13:48:20 +0200
commit9d82d309782c70ed7247db32902f48adebe90669 (patch)
treebb6a51a909ae9c544d05986c9b9beb96013887df /src/tests/test-modem-helpers.c
parent0510e9aef8818eeaa445aea246b670871c671ddb (diff)
cli, plugins: factorize usage of iso8601 datetime format
Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com> Includes updates by Aleksander Morgado to fix coding style issues.
Diffstat (limited to 'src/tests/test-modem-helpers.c')
-rw-r--r--src/tests/test-modem-helpers.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tests/test-modem-helpers.c b/src/tests/test-modem-helpers.c
index 9adfc100..1f040e8f 100644
--- a/src/tests/test-modem-helpers.c
+++ b/src/tests/test-modem-helpers.c
@@ -3562,25 +3562,25 @@ typedef struct {
static const CclkTest cclk_tests[] = {
{ "+CCLK: \"14/08/05,04:00:21\"", TRUE, TRUE, FALSE,
- "2014-08-05T04:00:21+00:00", 0 },
+ "2014-08-05T04:00:21Z", 0 },
{ "+CCLK: \"14/08/05,04:00:21\"", TRUE, FALSE, TRUE,
"2014-08-05T04:00:21+00:00", 0 },
{ "+CCLK: \"14/08/05,04:00:21\"", TRUE, TRUE, TRUE,
- "2014-08-05T04:00:21+00:00", 0 },
+ "2014-08-05T04:00:21Z", 0 },
{ "+CCLK: \"14/08/05,04:00:21+40\"", TRUE, TRUE, FALSE,
- "2014-08-05T04:00:21+10:00", 600 },
+ "2014-08-05T04:00:21+10", 600 },
{ "+CCLK: \"14/08/05,04:00:21+40\"", TRUE, FALSE, TRUE,
"2014-08-05T04:00:21+10:00", 600 },
{ "+CCLK: \"14/08/05,04:00:21+40\"", TRUE, TRUE, TRUE,
- "2014-08-05T04:00:21+10:00", 600 },
+ "2014-08-05T04:00:21+10", 600 },
{ "+CCLK: \"15/02/28,20:30:40-32\"", TRUE, TRUE, FALSE,
- "2015-02-28T20:30:40-08:00", -480 },
+ "2015-02-28T20:30:40-08", -480 },
{ "+CCLK: \"15/02/28,20:30:40-32\"", TRUE, FALSE, TRUE,
- "2015-02-28T20:30:40-08:00", -480 },
+ "2015-02-28T20:30:40-08", -480 },
{ "+CCLK: \"15/02/28,20:30:40-32\"", TRUE, TRUE, TRUE,
- "2015-02-28T20:30:40-08:00", -480 },
+ "2015-02-28T20:30:40-08", -480 },
{ "+CCLK: 17/07/26,11:42:15+01", TRUE, TRUE, FALSE,
"2017-07-26T11:42:15+00:15", 15 },
@@ -3590,11 +3590,11 @@ static const CclkTest cclk_tests[] = {
"2017-07-26T11:42:15+00:15", 15 },
{ "+CCLK: \"15/02/28,20:30:40-32\"", TRUE, TRUE, FALSE,
- "2015-02-28T20:30:40-08:00", -480 },
+ "2015-02-28T20:30:40-08", -480 },
{ "+CCLK: \"15/02/28,20:30:40-32\"", TRUE, FALSE, TRUE,
"2015-02-28T20:30:40-08:00", -480 },
{ "+CCLK: \"15/02/28,20:30:40-32\"", TRUE, TRUE, TRUE,
- "2015-02-28T20:30:40-08:00", -480 },
+ "2015-02-28T20:30:40-08", -480 },
{ "+CCLK: 17/07/26,11:42:15+01", TRUE, TRUE, FALSE,
"2017-07-26T11:42:15+00:15", 15 },