Permalink
Browse files

Replace the php 5.3-only DateTime method that was being called on the…

… logs page for filtering by dates. Fixes #1447.

git-svn-id: https://svn.habariproject.org/habari/trunk/htdocs/system@5125 653ae4dd-d31e-0410-96ef-6bf7bf53c507
  • Loading branch information...
1 parent 1973a45 commit c3f22a95e82f66889f4dc40d3a4534fbd5043b6b @chrismeller chrismeller committed May 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 handlers/adminlogshandler.php
View
2 handlers/adminlogshandler.php
@@ -56,7 +56,7 @@ private function fetch_logs()
$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' );
}

0 comments on commit c3f22a9

Please sign in to comment.