Poingg
2008-01-16 13:03:31 UTC
Hi
On line 28 of rss_utils, under the function parse_w3cdtf, there's this regular expression
$pat = "/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(:(\d{2}))?(?:([-+])(\d{2}):?(\d{2})|(Z))?/";
It should match the ISO 8601 date format (ex: 2005-07-26T12:16:26+02:00)
However, the parenthesis are wrong for the matching seconds. This way it will produce a
":26" instead of the desired "26"
This of course makes the next function gmmktime fail.
You should fix the regular expression and keep the : out. Should be an easy fix.
On line 28 of rss_utils, under the function parse_w3cdtf, there's this regular expression
$pat = "/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(:(\d{2}))?(?:([-+])(\d{2}):?(\d{2})|(Z))?/";
It should match the ISO 8601 date format (ex: 2005-07-26T12:16:26+02:00)
However, the parenthesis are wrong for the matching seconds. This way it will produce a
":26" instead of the desired "26"
This of course makes the next function gmmktime fail.
You should fix the regular expression and keep the : out. Should be an easy fix.