Skip to content

Commit

Permalink
Days format
Browse files Browse the repository at this point in the history
  • Loading branch information
bloatware authored Aug 10, 2018
1 parent 263c7a8 commit 2e31f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc_cache.php
Original file line number Diff line number Diff line change
@@ -287,7 +287,7 @@ public function tab($event, $step) {
$class = 'date'.($reset == '%' && $time < $prefs['lastmod'] ? ' warning' : '');
$datetime = date_create($time);
$diff = $datetime->diff($now);
$days = $diff->format('%d');
$days = $diff->format('%a');
$diff = (!$days ? '' : "$days day".($days == 1 ? '' : 's'). ' ').$diff->format('%H:%I hours old');

echo n.'<form method="post" action="?event=etc_cache">'.

0 comments on commit 2e31f83

Please sign in to comment.