mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-07-11 16:41:28 +02:00
Change date format for correct ordering
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user