]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
wdc: On FreeBSD, get the timezone the same as with real glibc
authorWarner Losh <imp@bsdimp.com>
Sat, 8 Mar 2025 05:56:54 +0000 (22:56 -0700)
committerDaniel Wagner <wagi@monom.org>
Mon, 17 Mar 2025 09:03:34 +0000 (10:03 +0100)
commit81c8f26c35aeaaf5af9417ec2656fc52b5d76cbe
tree1d569fdf0699f59a850c0795127125b49d7f54dc
parentaec85d96e07f444b7f165216749009ffbb2ae519
wdc: On FreeBSD, get the timezone the same as with real glibc

FreeBSD 15 and newer finally has the timezone variable (prior it that
was a compat function leftover from 4BSD). Older versions are still
supported. Both have tm_gmoff, which I've always preferred for better
portability.

Signed-off-by: Warner Losh <imp@bsdimp.com>
plugins/wdc/wdc-utils.c