mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Implemented review changes
This commit is contained in:
parent
d6b009cd84
commit
3596b6af9b
@ -25,9 +25,6 @@ if (cbChecked _aceTimestamp && {ACE_player call FUNC(canTimestamp)}) then {
|
||||
private _time = [];
|
||||
|
||||
switch (GVAR(timestampTimezone)) do {
|
||||
default {
|
||||
_time = dayTime;
|
||||
};
|
||||
case 1: {
|
||||
systemTime params ["", "", "", "_hour", "_min", "_sec"];
|
||||
_time = _hour + _min/60 + _sec/3600;
|
||||
@ -36,14 +33,12 @@ if (cbChecked _aceTimestamp && {ACE_player call FUNC(canTimestamp)}) then {
|
||||
_offset = GVAR(timestampUTCOffset);
|
||||
systemTimeUTC params["", "", "", "_hour", "_min", "_sec"];
|
||||
_hour = _hour + round(_offset);
|
||||
if (_hour < 0) then {
|
||||
_hour = 24 + _hour;
|
||||
};
|
||||
if (_hour > 24) then {
|
||||
_hour = _hour - 24;
|
||||
};
|
||||
_hour = _hour % 24;
|
||||
_time = _hour + _min/60 + _sec/3600;
|
||||
};
|
||||
default {
|
||||
_time = dayTime;
|
||||
};
|
||||
};
|
||||
|
||||
// add timestamp suffix
|
||||
|
Loading…
Reference in New Issue
Block a user