From 6a27f1af8efbba4566a72d1860f041ef3a742f01 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 7 Mar 2007 17:04:03 +0000 Subject: [PATCH] Fix parse_w3cdtf. Props mortenf. fixes #3896 git-svn-id: http://svn.automattic.com/wordpress/trunk@4997 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rss.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/rss.php b/wp-includes/rss.php index fbb053861..3bac455d4 100644 --- a/wp-includes/rss.php +++ b/wp-includes/rss.php @@ -782,13 +782,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 {