[5125] trunk/htdocs/system/handlers/adminlogshandler.php: Replace the php 5 . 3-only DateTime method that was being called on the logs page for filtering by dates .

0 views
Skip to first unread message

s...@habariproject.org

unread,
May 14, 2011, 4:28:58 PM5/14/11
to habar...@googlegroups.com
Revision
5125
Author
chrismeller
Date
2011-05-14 20:28:52 +0000 (Sat, 14 May 2011)

Log Message

Replace the php 5.3-only DateTime method that was being called on the logs page for filtering by dates. Fixes #1447.

Modified Paths

Diff

Modified: trunk/htdocs/system/handlers/adminlogshandler.php (5124 => 5125)


--- trunk/htdocs/system/handlers/adminlogshandler.php	2011-05-14 11:07:29 UTC (rev 5124)
+++ trunk/htdocs/system/handlers/adminlogshandler.php	2011-05-14 20:28:52 UTC (rev 5125)
@@ -56,7 +56,7 @@
 		$date = Controller::get_var( 'date', 'any' );
 
 		if ( $date != 'any' ) {
-			$d = DateTime::createFromFormat( '!Y-m', $date );	// ! means fill any non-specified pieces with default Unix Epoch ones
+			$d = HabariDateTime::date_create( $date );	// ! means fill any non-specified pieces with default Unix Epoch ones
 			$arguments['year'] = $d->format( 'Y' );
 			$arguments['month'] = $d->format( 'm' );
 		}
Reply all
Reply to author
Forward
0 new messages