From f0036fabbb371b26bdeab39a6117e9cd46ae58cb Mon Sep 17 00:00:00 2001 From: commy2 Date: Sun, 4 Oct 2015 02:15:38 +0200 Subject: [PATCH] use BIS fnc for time format --- addons/respawn/functions/fnc_moveRallypoint.sqf | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/addons/respawn/functions/fnc_moveRallypoint.sqf b/addons/respawn/functions/fnc_moveRallypoint.sqf index b34b69b617..fa8aae40a5 100644 --- a/addons/respawn/functions/fnc_moveRallypoint.sqf +++ b/addons/respawn/functions/fnc_moveRallypoint.sqf @@ -46,13 +46,7 @@ _position set [2, 0]; _rallypoint setPosATL _position; _unit reveal _rallypoint; - // fix leading zero - local _minutes = date select 4; - if (_minutes < 10) then { - _minutes = format ["0%1", _minutes]; - }; - - _rallypoint setVariable [QGVAR(markerDate), format ["%1:%2", date select 3, _minutes], true]; + _rallypoint setVariable [QGVAR(markerDate), [dayTime, "HH:MM"] call BIS_fnc_timeToString, true]; ["rallypointMoved", [_rallypoint, _side, _position]] call EFUNC(common,globalEvent);