(MAYBE_SET_TZ_UTC0): New macro.
authorJim Meyering <jim@meyering.net>
Sat, 12 Jul 1997 22:52:57 +0000 (22:52 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 12 Jul 1997 22:52:57 +0000 (22:52 +0000)
commitd1a07e1ad2708bac453a86746f7fc1c2d91de92e
tree3fa331f136b7f0bf2f4b2cfe0bf9498d5a5c673d
parent3dcfda7bda7c98edbc6ef1f6e9ed4974488df153
(MAYBE_SET_TZ_UTC0): New macro.
(set_tz): New function.
(batch_convert): If necessary, save the initial value of TZ and
for each date in the file, restore it before each call to get_date,
then set it to UTC0 before each show_date call.
(main): Don't set TZ before calling get_date.
Set TZ after get_date call and before show_date call.
Reported by Matthew Braun.
src/date.c