http://www.mediawiki.org/wiki/Special:Code/MediaWiki/74045
Revision: 74045
Author: tparscal
Date: 2010-09-30 21:32:19 +0000 (Thu, 30 Sep 2010)
Log Message:
-----------
Fixed bug in r74043 where a : was left out of a regex for matching timestamps
to TS_ISO_8691_BASIC
Modified Paths:
--------------
trunk/phase3/includes/GlobalFunctions.php
Modified: trunk/phase3/includes/GlobalFunctions.php
===================================================================
--- trunk/phase3/includes/GlobalFunctions.php 2010-09-30 21:28:48 UTC (rev
74044)
+++ trunk/phase3/includes/GlobalFunctions.php 2010-09-30 21:32:19 UTC (rev
74045)
@@ -1990,7 +1990,7 @@
str_replace( '+00:00', 'UTC', $ts ) ) );
} elseif ( preg_match(
'/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.*\d*)?Z$/', $ts, $da ) )
{
# TS_ISO_8601
- } elseif ( preg_match(
'/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})(?\.*\d*)?Z$/', $ts, $da ) ) {
+ } elseif ( preg_match(
'/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})(?:\.*\d*)?Z$/', $ts, $da ) ) {
#TS_ISO_8601_BASIC
} elseif ( preg_match( '/^(\d{4})\-(\d\d)\-(\d\d)
(\d\d):(\d\d):(\d\d)\.*\d*[\+\- ](\d\d)$/', $ts, $da ) ) {
# TS_POSTGRES
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs