Util.pm: correct & loosen parse_any_date RFC 3339 / ISO 8601 parsing
commitb3bbf95507a9a739ee568d2413e7c8afe2807f07
authorKyle J. McKay <mackyle@gmail.com>
Tue, 2 Sep 2014 04:19:03 +0000 (1 21:19 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 2 Sep 2014 04:19:03 +0000 (1 21:19 -0700)
tree2e1556a4845faf84b4aae23e92b8a61cb406eb9e
parentd73f32daf5682c603f874946eb85131183fac782
Util.pm: correct & loosen parse_any_date RFC 3339 / ISO 8601 parsing

Accept '_' in place of 'T' (as well as ' ' which was previously accepted).
Make the space before the zone optional (was incorrectly required before).
Accept '_' in place of the space before the zone.
Accept a single digit hour (both time and zone offset).
Remove warnings caused by omitting the trailing 'Z'.
Accept a form with no ':' or '-' characters (only 2-digit hours).

Still does not accept fractional seconds.
Girocco/Util.pm