Change date format for correct ordering

This commit is contained in:
Mike Gelfand
2014-05-15 13:06:41 +03:00
parent 644a356306
commit ed5cb66a4c

View File

@@ -40,7 +40,7 @@ class CommitController implements ControllerProviderInterface
foreach ($commits as $commit) {
$date = $commit->getDate();
$date = $date->format('m/d/Y');
$date = $date->format('Y-m-d');
$categorized[$date][] = $commit;
}
@@ -72,7 +72,7 @@ class CommitController implements ControllerProviderInterface
foreach ($commits as $commit) {
$date = $commit->getDate();
$date = $date->format('m/d/Y');
$date = $date->format('Y-m-d');
$categorized[$date][] = $commit;
}