plan9fox/sys
cinap_lenrek 4e3a8e41fb tm2sec: assume local timezone when Tm.zone[0] == 0 (fixes dossrv, zipfs timestamps)
from the manual:

Tm2sec converts a broken-down time to seconds since the
start of the epoch.  It ignores wday, and assumes the local
time zone if zone is not GMT.

so we can assume localtime if Tm.zone is not set to GMT.

all code that wants no localtime conversion should set
Tm.zone explicitely to GMT. (see previous commits)

tm2sec() now does the reverse of localtime() when Tm.zone[0] == 0
which seems to be what the calling code (dossrv, zipfs) assumes.
this also makes sense because theres no simple way todo it
outside of libc as theres otherwise no access to the timezone
structure with the daylight saving periods.
2013-08-11 02:19:02 +02:00
..
doc
games/lib fortunes: God bless the people who employ you, they need the blessing. 2013-08-06 14:52:13 -04:00
include rio: add ^B control sequence to move cursor to output point 2013-08-04 06:45:58 +02:00
lib acid: fix dumptree() acid function to work in kernel debug, update malloc.acid and pool.acid files 2013-06-10 01:13:21 +02:00
man rio: add ^B control sequence to move cursor to output point 2013-08-04 06:45:58 +02:00
src tm2sec: assume local timezone when Tm.zone[0] == 0 (fixes dossrv, zipfs timestamps) 2013-08-11 02:19:02 +02:00