Module Name:    src
Committed By:   christos
Date:           Wed Apr 17 17:37:29 UTC 2019

Modified Files:
        src/lib/libc/time: localtime.c

Log Message:
Pick up the latest matching (most recent) entry instead of the first
one.

This fixes:
        env TZ=Australia/Melbourne date
printing
        Thu Apr 18 03:32:32 LMT 2019
instead of:
        Thu Apr 18 03:32:32 AEST 2019

XXX: To be strictly correct, the tzgetname() call should probably take
a time reference point in order to return the appropriate zone name
for the time given.

Yes, the timezone name should be associated with the specific point in
time.


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

Reply via email to