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.
This commit is contained in:
committed by
Aleksander Morgado
parent
0510e9aef8
commit
9d82d30978
@@ -29,6 +29,7 @@
|
||||
#include "mm-errors-types.h"
|
||||
#include "mm-modem-helpers-cinterion.h"
|
||||
#include "mm-modem-helpers.h"
|
||||
#include "mm-common-helpers.h"
|
||||
#include "mm-port-serial-at.h"
|
||||
|
||||
/* Setup relationship between the 3G band bitmask in the modem and the bitmask
|
||||
|
||||
@@ -1359,7 +1359,7 @@ static void
|
||||
test_ctzu_urc_simple (void)
|
||||
{
|
||||
const gchar *urc = "\r\n+CTZU: \"19/07/09,11:15:40\",+08\r\n";
|
||||
const gchar *expected_iso8601 = "2019-07-09T11:15:40+02:00";
|
||||
const gchar *expected_iso8601 = "2019-07-09T11:15:40+02";
|
||||
gint expected_offset = 120;
|
||||
gint expected_dst_offset = -1; /* not given */
|
||||
|
||||
@@ -1370,7 +1370,7 @@ static void
|
||||
test_ctzu_urc_full (void)
|
||||
{
|
||||
const gchar *urc = "\r\n+CTZU: \"19/07/09,11:15:40\",+08,1\r\n";
|
||||
const gchar *expected_iso8601 = "2019-07-09T11:15:40+02:00";
|
||||
const gchar *expected_iso8601 = "2019-07-09T11:15:40+02";
|
||||
gint expected_offset = 120;
|
||||
gint expected_dst_offset = 60;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user