huawei: don't add DST to TZ offset

DST is already included in TZ offset. Adjust tests accordingly.
This commit is contained in:
okaestne
2023-07-01 23:38:24 +02:00
committed by Aleksander Morgado
parent d856cae75b
commit aaacc8120a
2 changed files with 7 additions and 7 deletions

View File

@@ -1244,7 +1244,7 @@ mm_huawei_parse_nwtime_response (const gchar *response,
/* Return ISO-8601 format date/time string */ /* Return ISO-8601 format date/time string */
*iso8601p = mm_new_iso8601_time (year, month, day, hour, *iso8601p = mm_new_iso8601_time (year, month, day, hour,
minute, second, minute, second,
TRUE, (tz * 15) + (dt * 60), TRUE, (tz * 15),
error); error);
return (*iso8601p != NULL); return (*iso8601p != NULL);
} }

View File

@@ -1086,18 +1086,18 @@ static const NwtimeTest nwtime_tests[] = {
"2014-08-05T04:00:21+05", 300, 0, NWT_UNKNOWN }, "2014-08-05T04:00:21+05", 300, 0, NWT_UNKNOWN },
{ "^NWTIME: 14/08/05,04:00:21+40,01", TRUE, TRUE, FALSE, { "^NWTIME: 14/08/05,04:00:21+40,01", TRUE, TRUE, FALSE,
"2014-08-05T04:00:21+11", 600, 60, NWT_UNKNOWN }, "2014-08-05T04:00:21+10", 600, 60, NWT_UNKNOWN },
{ "^NWTIME: 14/08/05,04:00:21+40,01", TRUE, FALSE, TRUE, { "^NWTIME: 14/08/05,04:00:21+40,01", TRUE, FALSE, TRUE,
"2014-08-05T04:00:21+11", 600, 60, NWT_UNKNOWN }, "2014-08-05T04:00:21+10", 600, 60, NWT_UNKNOWN },
{ "^NWTIME: 14/08/05,04:00:21+40,01", TRUE, TRUE, TRUE, { "^NWTIME: 14/08/05,04:00:21+40,01", TRUE, TRUE, TRUE,
"2014-08-05T04:00:21+11", 600, 60, NWT_UNKNOWN }, "2014-08-05T04:00:21+10", 600, 60, NWT_UNKNOWN },
{ "^NWTIME: 14/08/05,04:00:21+40,02", TRUE, TRUE, FALSE, { "^NWTIME: 14/08/05,04:00:21+40,02", TRUE, TRUE, FALSE,
"2014-08-05T04:00:21+12", 600, 120, NWT_UNKNOWN }, "2014-08-05T04:00:21+10", 600, 120, NWT_UNKNOWN },
{ "^NWTIME: 14/08/05,04:00:21+40,02", TRUE, FALSE, TRUE, { "^NWTIME: 14/08/05,04:00:21+40,02", TRUE, FALSE, TRUE,
"2014-08-05T04:00:21+12", 600, 120, NWT_UNKNOWN }, "2014-08-05T04:00:21+10", 600, 120, NWT_UNKNOWN },
{ "^NWTIME: 14/08/05,04:00:21+40,02", TRUE, TRUE, TRUE, { "^NWTIME: 14/08/05,04:00:21+40,02", TRUE, TRUE, TRUE,
"2014-08-05T04:00:21+12", 600, 120, NWT_UNKNOWN }, "2014-08-05T04:00:21+10", 600, 120, NWT_UNKNOWN },
{ "^TIME: XX/XX/XX,XX:XX:XX+XX,XX", FALSE, TRUE, FALSE, { "^TIME: XX/XX/XX,XX:XX:XX+XX,XX", FALSE, TRUE, FALSE,
NULL, NWT_UNKNOWN, NWT_UNKNOWN, NWT_UNKNOWN }, NULL, NWT_UNKNOWN, NWT_UNKNOWN, NWT_UNKNOWN },