Skip to content

Commit

Permalink
fix timeline when duplicated timestamp exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Briante committed Nov 7, 2017
1 parent 8a37e98 commit 3ca3272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Timeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static function fixData($data)
$result = [];

foreach($data as $time) {
$result[$time['dateTimestamp']] = collect($time);
$result[$time['dateTimestamp'].'-'.sprintf('%02d',$key)] = collect($time);
}

krsort($result);
Expand Down

0 comments on commit 3ca3272

Please sign in to comment.