Fix interval timers by forcing TZ to UTC, else some strftime formats
authorclaudio <claudio@openbsd.org>
Thu, 30 Jun 2022 07:42:50 +0000 (07:42 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 30 Jun 2022 07:42:50 +0000 (07:42 +0000)
commitecef9ffb8afa3c7b20c87642d8e9ae99f9541d79
tree4bdef3f8102269c373079df0060d406859cf1b25
parenta4c579fa44bbc013481fd30b674ae237293b953f
Fix interval timers by forcing TZ to UTC, else some strftime formats
print strange offsets.

While there rework the main loop to only use localtime and now.
Calculate the relative time offset for -m mode just once at startup.
OK sthen@ job@
usr.bin/ts/ts.c