Content deleted Content added
No edit summary |
No edit summary |
||
Line 557:
local utc_timestamp = os.time (); -- get current server time (UTC) in seconds; used to determine when dst adjustment should be applied
local
▲ local retval;
if is_set (tz.dst_begins) and is_set (tz.dst_ends) and is_set (tz.dst_time) then -- make sure we have all of the parts
Line 570 ⟶ 569:
if invert then -- southern hemisphere; use beginning and ending of standard time in the comparison
if utc_timestamp >= dst_end_ts and utc_timestamp < dst_begin_ts then -- is current date time standard time?
else
end
else -- northern hemisphere
if utc_timestamp >= dst_begin_ts and utc_timestamp < dst_end_ts then -- is current date time daylight time?
else
end
end
Line 586 ⟶ 585:
else -- timezone does not use dst
end
local sign, hours, minutes =
if '' == sign then
sign = '+';
|