mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Updated hour offset calculation
This commit is contained in:
parent
42f3f48b0b
commit
b7a82da5ed
@ -29,9 +29,8 @@ if (cbChecked _aceTimestamp && {ACE_player call FUNC(canTimestamp)}) then {
|
||||
};
|
||||
case 2: {
|
||||
systemTimeUTC params ["", "", "", "_hour", "_min", "_sec"];
|
||||
_hour = _hour + round (GVAR(timestampUTCOffset));
|
||||
_hour = _hour % 24;
|
||||
_hour = if (Hour < 0) then { 24 + Hour };
|
||||
_hour = (_hour + round (GVAR(timestampUTCOffset))) % 24;
|
||||
_hour = if (_hour < 0) then { 24 + _hour } else { _hour };
|
||||
_hour + _min/60 + _sec/3600
|
||||
};
|
||||
default {
|
||||
|
Loading…
Reference in New Issue
Block a user