diff --git a/addons/markers/functions/fnc_onButtonClickConfirm.sqf b/addons/markers/functions/fnc_onButtonClickConfirm.sqf
index 280fc11a34..b83af5419d 100644
--- a/addons/markers/functions/fnc_onButtonClickConfirm.sqf
+++ b/addons/markers/functions/fnc_onButtonClickConfirm.sqf
@@ -43,10 +43,10 @@ if (cbChecked _aceTimestamp && {
 			systemTimeUTC params["", "", "", "_hour", "_min", "_sec"];
 			_hour = _hour + _offset;
 			if (_hour < 0) then {
-				_hour= 24 - (_hour + _offset);
+				_hour = 24 - _hour;
 			};
 			if (_hour > 24) then {
-				_hour = 0 + ((_hour + _offset) - 24);
+				_hour = 0 + (_hour - 24);
 			};
 			_time = _hour + _min/60 + _sec/3600;
 		};
@@ -78,4 +78,4 @@ if (cbChecked _aceTimestamp && {
 		[_time, GVAR(timestampFormat)] call BIS_fnc_timeToString,
 		_periodPostfix
 	];
-};
\ No newline at end of file
+};