]> saetta.ns0.it Git - libzakutils/commitdiff
In gdatetime_from_string admit seconds with time zone but excluded from conversion.
authorAndrea Zagli <azagli@libero.it>
Sun, 21 Mar 2021 12:13:30 +0000 (13:13 +0100)
committerAndrea Zagli <azagli@libero.it>
Mon, 22 Mar 2021 12:14:33 +0000 (13:14 +0100)
src/datetime.c

index 629c6159de95914865784d8e6423c5c656f6734f..20f411494b6fb082c2bf2e1e97633b787f529d70 100644 (file)
@@ -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;