Skip to content

Commit

Permalink
Pages: sort key for date should be in 24-hour format
Browse files Browse the repository at this point in the history
  • Loading branch information
MusikAnimal committed Nov 17, 2017
1 parent 66bc473 commit 84a610a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AppBundle/Controller/PagesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function resultAction(Request $request, $namespace = '0', $redirects = 'n

foreach ($result as $row) {
$datetime = DateTime::createFromFormat('YmdHis', $row['rev_timestamp']);
$datetimeKey = $datetime->format('Ymdhi');
$datetimeKey = $datetime->format('YmdHi');
$datetimeHuman = $datetime->format('Y-m-d H:i');

$pageData = array_merge($row, [
Expand Down

0 comments on commit 84a610a

Please sign in to comment.