summaryrefslogtreecommitdiff
path: root/magpierss/rss_utils.inc
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-09-12 17:50:57 +0100
committerAndrew Dolgov <[email protected]>2006-09-12 17:50:57 +0100
commit67b9c19aa03d19b561e26f48be09c7cb0b705a70 (patch)
tree6884ae832f6f81a66c14091f452acc21337f2e67 /magpierss/rss_utils.inc
parent375a346d0c9082dbbdd90e370d560d766f758327 (diff)
fix magpie w3cdtf parsing (closes #110)
Diffstat (limited to 'magpierss/rss_utils.inc')
-rw-r--r--magpierss/rss_utils.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/magpierss/rss_utils.inc b/magpierss/rss_utils.inc
index 2a29e72a9..86fbdc829 100644
--- a/magpierss/rss_utils.inc
+++ b/magpierss/rss_utils.inc
@@ -29,13 +29,13 @@ function parse_w3cdtf ( $date_str ) {
if ( preg_match( $pat, $date_str, $match ) ) {
list( $year, $month, $day, $hours, $minutes, $seconds) =
- array( $match[1], $match[2], $match[3], $match[4], $match[5], $match[6]);
+ array( $match[1], $match[2], $match[3], $match[4], $match[5], $match[7]);
# calc epoch for current date assuming GMT
$epoch = gmmktime( $hours, $minutes, $seconds, $month, $day, $year);
$offset = 0;
- if ( $match[10] == 'Z' ) {
+ if ( $match[11] == 'Z' ) {
# zulu time, aka GMT
}
else {