Skip to content

Commit

Permalink
Update Time.php
Browse files Browse the repository at this point in the history
Fixes #330
  • Loading branch information
velocity23 committed May 10, 2021
1 parent 945ba36 commit ce98bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Time.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function secsToString($secs)
$hours = floor($secs / 3600);
$minutes = floor(($secs / 60) % 60);

return "{$hours}:${$minutes}";
return sprintf("%02d:%02d", $hours, $minutes);
}

/**
Expand Down

0 comments on commit ce98bf7

Please sign in to comment.