chore(date): fix warning

the call `setz(c, x)` would pass 2 arguments, the TZ offset, and
TZ abreviated name. WHere only the offset would be used. Hence it is
safe to remove the `x` parameter from the call.

Fixes #30
This commit is contained in:
Thijs Schreijer
2023-09-06 15:17:40 +02:00
parent e309741edc
commit 32ac69fc42

View File

@@ -343,7 +343,7 @@
setm(mod(sw[0],12)+1) setm(mod(sw[0],12)+1)
elseif inlist(x, sl_timezone, 2, sw) then elseif inlist(x, sl_timezone, 2, sw) then
c = fix(sw[0]) -- ignore gmt and utc c = fix(sw[0]) -- ignore gmt and utc
if c ~= 0 then setz(c, x) end if c ~= 0 then setz(c) end
elseif not inlist(x, sl_weekdays, 2, sw) then elseif not inlist(x, sl_weekdays, 2, sw) then
sw:back() sw:back()
-- am pm bce ad ce bc -- am pm bce ad ce bc