From cc9a5f6f28b7801ebd0c98757173056794f99376 Mon Sep 17 00:00:00 2001 From: Bruce Bannon Date: Sun, 10 Mar 2024 00:35:42 -0700 Subject: [PATCH] faster Why waste milliseconds doing the math every time? --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index 4141d9631..d3d6f8e39 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -145,7 +145,7 @@ function add_duration ( $time, $duration ) { $minutes = intval ( $time / 10000 ) * 60 + ( ( $time / 100 ) % 100 ) + $duration; // If we ran past 240000, then roll back over to 000000. - $minutes %= ( 24 * 60 ); + $minutes %= 1440; return sprintf ( "%d%02d00", $minutes / 60, $minutes % 60 ); }