]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
Use standard interfaces to get timezone offsets.
authorM. Warner Losh <wlosh@netflix.com>
Thu, 4 Oct 2018 21:37:17 +0000 (15:37 -0600)
committerM. Warner Losh <wlosh@netflix.com>
Thu, 4 Oct 2018 21:37:17 +0000 (15:37 -0600)
commit559c0f04ba6461997bdfa1cc8eae948dd01693ed
tree7a390b7b60f67acaec522ecde7053252cf230f52
parent8def600927a545154cc19dd7944e34d2f7440576
Use standard interfaces to get timezone offsets.

Use the tm_gmtoff returned from localtime() rather than the global
timezone.  The formal is more portable, while the latter is specific
to glibc.  There's no good reason to use the glibc specific interface.
wdc-utils.c
wdc-utils.h