We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7903400 commit 10b1c66Copy full SHA for 10b1c66
webapp/src/Utils/Utils.php
@@ -213,9 +213,10 @@ public static function relTimeToSeconds(string $reltime): float
213
preg_match(self::RELTIME_REGEX, $reltime, $data);
214
$negative = ($data[1] === '-');
215
$modifier = $negative ? -1 : 1;
216
- $seconds = $modifier * (int)$data[2] * 3600
+ $seconds = $modifier * (
217
+ (int)$data[2] * 3600
218
+ (int)$data[3] * 60
- + (float)sprintf('%d.%03d', $data[4], $data[5] ?? 0);
219
+ + (float)sprintf('%d.%03d', $data[4], $data[5] ?? 0));
220
return $seconds;
221
}
222
0 commit comments