From d2599bd9aa6d954552bc01ca05a17901dfa1df06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl?= <78355193+Daniel-H123@users.noreply.github.com> Date: Tue, 14 Nov 2023 21:21:15 +0100 Subject: [PATCH] Implemented better solution to handle negative timestamp seconds offset --- addons/markers/functions/fnc_onButtonClickConfirm.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/markers/functions/fnc_onButtonClickConfirm.sqf b/addons/markers/functions/fnc_onButtonClickConfirm.sqf index 942436fc9ad..0b14b32ff0a 100644 --- a/addons/markers/functions/fnc_onButtonClickConfirm.sqf +++ b/addons/markers/functions/fnc_onButtonClickConfirm.sqf @@ -31,7 +31,7 @@ if (cbChecked _aceTimestamp && {ACE_player call FUNC(canTimestamp)}) then { systemTimeUTC params ["", "", "", "_hour", "_min", "_sec"]; _hourOffset = round (GVAR(timestampUTCOffset)); _hour = _hour + _hourOffset; - _min = if (_hourOffset < 0) then { _min - GVAR(timestampUTCMinutesOffset) } else { _min + GVAR(timestampUTCMinutesOffset) }; + _min = _min - GVAR(timestampUTCMinutesOffset) * (_hourOffset / abs _hourOffset); _time = (_hour + _min/60 + _sec/3600) % 24 + 24; _time % 24 };