]> git.lizzy.rs Git - plan9front.git/commit
upas/fs: fix handling of numeric timezone offsets in strtotm
authorAlex Musolino <alex@musolino.id.au>
Wed, 30 Oct 2019 23:11:03 +0000 (09:41 +1030)
committerAlex Musolino <alex@musolino.id.au>
Wed, 30 Oct 2019 23:11:03 +0000 (09:41 +1030)
commit06786f2a71cb5330e63cf50ba7eed8278b31c07f
tree1632165878b4f4e3054c0862c1a0ac113fd00641
parent6c434774926d3d02becbc726fff37f80bb16029b
upas/fs: fix handling of numeric timezone offsets in strtotm

Since numeric timezone offsets are relative to GMT, initialise zone to
GMT so tm2sec(2) does not assume local time.

Note that if strtotm encounters a timezone *string* and consequently
overwrites zone then we will end up in the same mess since tm2sec(2)
only deals with GMT or local time.
sys/src/cmd/upas/fs/strtotm.c