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 };