Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: date/strftime() returning wrong timezone name



On my 8.99/35 system from last month I get

	$  TZ=Australia/Melbourne date; TZ=NZ date
	Wed Apr 17 16:21:31 AEST 2019
	Wed Apr 17 18:21:31 NZST 2019
	$

On an 8.99.37 within qemu (built only a couple days ago), I get

# TZ=Australia/Melbourne date; TZ=NZ date
Wed Apr 17 16:24:10 LMT 2019
Wed Apr 17 18:24:10 LMT 2019
#


I'd guess that a recent import of the latest tzcode has gone awry.




On Wed, 17 Apr 2019, Geoff Wing wrote:

Hi,
running /sbin/dmesg and /bin/date I am seeing a timezone name of "LMT" instead
of my normal "AEST"

Copying "date" and my zoneinfo file from a working computer, I still see bad
info.

From -current (compiled myself and from nyftp snapshot):
% TZ=Australia/Melbourne date; TZ=NZ date
Wed Apr 17 16:04:16 LMT 2019
Wed Apr 17 16:04:16 LMT 2019

From a month ago:
% TZ=Australia/Melbourne date; TZ=NZ date
Wed Apr 17 16:03:54 AEST 2019
Wed Apr 17 16:03:54 NZST 2019

"LMT" was the correct timezone name 125-150 years ago for those zones.

Is this reproducible for anyone else or something unique to me?

I see there have been some recent changes to strftime() so perhaps
those are the cause of my problem.

Regards,
Geoff

!DSPAM:5cb6c3a8134038455320440!



+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost     |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost   |
+--------------------+--------------------------+-----------------------+


Home | Main Index | Thread Index | Old Index