Index: gtimer.c
===================================================================
--- gtimer.c	(revision 6088)
+++ gtimer.c	(working copy)
@@ -307,6 +307,16 @@
   g_return_val_if_fail (iso_date != NULL, FALSE);
   g_return_val_if_fail (time_ != NULL, FALSE);
 
+  /* Ensure that the first character is a digit,
+   * the first digit of the date, otherwise we don't
+   * have an ISO 8601 date */
+  while (g_ascii_isspace (*iso_date))
+    iso_date++;
+  if (*iso_date == '\0')
+    return FALSE;
+  if (!g_ascii_isdigit (*iso_date))
+    return FALSE;
+
   val = strtoul (iso_date, (char **)&iso_date, 10);
   if (*iso_date == '-')
     {
