Summary: | Timezones (zoneinfo) starting from October 2014 wrong for Russia, etc | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | leo | ||||
Component: | bin | Assignee: | Xin LI <delphij> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Many People | CC: | delphij, leo, ports, re, vas | ||||
Priority: | --- | ||||||
Version: | 9.3-RELEASE | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
leo
2014-10-05 19:56:35 UTC
P.S. Require changes only zone info data files (one, two, or three files). C code or command files changes do not require. -- Sorry for my best English. Created attachment 148016 [details]
Package with zoneinfo data files
Also, this problem may cause application errors. For example: [XXX@YYY ~]# freebsd-upgrade fetch ... [XXX@YYY ~]# freebsd-upgrade install ... [XXX@YYY ~]# pkg upgrade ... [XXX@YYY ~]# date +'%d.%m.%Y %H:%M:%S %Z' 27.10.2014 12:30:00 MSK [XXX@YYY ~]# TZ=Europe/Moscow date +'%d.%m.%Y %H:%M:%S %Z' 27.10.2014 12:30:06 MSK [XXX@YYY ~]# php -r ' date_default_timezone_set("Europe/Moscow"); echo date("r e\n");' Mon, 27 Oct 2014 11:30:21 +0300 Europe/Moscow [XXX@YYY ~]# ruby -e "require 'tzinfo' ; puts TZInfo::Timezone.get('Europe/Moscow').strftime('%d.%m.%Y %H:%M:%S %Z')" 27.10.2014 11:30:33 MSK libc localtime may differ from localtime ruby, php and others with unpredictable consequences I think outdated timezone information is a critical condition affecting many installations in various ways, so the updated timezone files should make it into the security branch, be available via freebsd-update etc. as a critical update. And yes, we have a precedent set by https://www.freebsd.org/security/advisories/FreeBSD-EN-07:04.zoneinfo.asc re@ will issue an errata for this. Patch committed to all supported release errata branches. Errata notice will be out really soon. Thank you. Possible Errata should be mentioned that some FreeBSD ported application does not use the system zoneinfo, so additionally you may need to update packages. As far as I know: php, ruby, java, perl (DateTime module), such updates available for `pkg update'. -- Sorry for my best English Congratulations. <https://www.freebsd.org/security/advisories/FreeBSD-EN-14:10.tzdata.asc> was published. However, IMHO, there is one inaccuracy in section "V. Solution", pp. 1 and 2 look right, if I remember correctly, and update the system and `make install world' implicitly run `tzsetup -r' in the process of their work, but `freebsd-update install' not start `tzsetup -r'. Therefore, p.3 need to add: # freebsd-update fetch # freebsd-update install # tzsetup -r For install zone info updates to /etc/localtime |