From: Andrea Zagli Date: Sun, 21 Mar 2021 12:13:30 +0000 (+0100) Subject: In gdatetime_from_string admit seconds with time zone but excluded from conversion. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=0d472ce069c1fbb95b70994f750081f1aad720ce;p=libzakutils In gdatetime_from_string admit seconds with time zone but excluded from conversion. --- diff --git a/src/datetime.c b/src/datetime.c index 629c615..20f4114 100644 --- a/src/datetime.c +++ b/src/datetime.c @@ -483,7 +483,7 @@ GDateTime char *ptr; seconds = g_strtod (str_tokens[i], &ptr); - if ((ptr != NULL && g_strcmp0 (ptr, "") != 0) + if ((ptr != NULL && g_strcmp0 (ptr, "") != 0 && ptr[0] != '+') || seconds > 59.0) { error = TRUE;