Skip to content

Commit

Permalink
🐞 fix: NiDE-gg#8
Browse files Browse the repository at this point in the history
  • Loading branch information
DNA-styx committed Dec 31, 2024
1 parent 66076a5 commit d7e0e99
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/web/sig.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,11 @@ function f_num($number) {
$timestamp = $playerdata['connection_time'];
$days = floor($timestamp / 86400);
$hours = $days * 24;
$hours += floor($timestamp / 3600 % 24);
if ($hours < 10)
$hours = '0'.$hours;
$min = floor($timestamp / 60 % 60);
$hours += floor($timestamp / 3600) % 24;
if ($hours < 10) {
$hours = '0' . (int)$hours;
}
$min = floor($timestamp / 60) % 60;
if ($min < 10)
$min = '0'.$min;
$sec = floor($timestamp % 60);
Expand Down Expand Up @@ -470,4 +471,4 @@ function f_num($number) {
imagedestroy($watermark);

}
?>
?>

0 comments on commit d7e0e99

Please sign in to comment.