GNOME Bugzilla – Bug 627892
g_time_val_from_iso8601 rejects valid date
Last modified: 2010-10-14 11:23:02 UTC
Created attachment 168685 [details] [review] Fix issue assertion failed: (g_time_val_from_iso8601 ("2009-08-02", &tv)) While checking this, I also noticed that "2009-08-02T" is considered a valid iso8601 which - if I understood wikipedia correctly - isn't. Attached patch fixes both issues
Created attachment 168688 [details] [review] Fix issue, v2 Fix original patch and add tests for the cases fixed.
Review of attachment 168688 [details] [review]: looks okay to me. ::: glib/gtimer.c @@ +443,3 @@ + if (!g_ascii_isdigit (*iso_date)) + { + return FALSE; minor style issue: no need to use curly brackets for a single statement.
Created attachment 168689 [details] [review] Fix issue, v3 Style fix
Review of attachment 168689 [details] [review]: again, looks good.
pushed commit db7ddcc19529a101b820347e8cca419fb37f6a02 Author: Jens Georg <mail@jensge.org> Date: Wed Aug 25 00:18:23 2010 +0300 Improve parsing of date-only iso8601 strings
*** Bug 632121 has been marked as a duplicate of this bug. ***