Bug #2279
closedzoneinfo.tgz has old timezone names and data
0%
Description
/usr/share/zoneinfo/zone.tab contains the current timezone names (and other data) and is distributed as part of FreeBSD. Recent releases (e.g. the FreeBSD in pfSense 2.0.* and FreeBSD 8.3 in pfSense 2.1-DEV) have newer names such as "Asia/Kathmandu" and "Asia/Kolkata" (the old names were "Asia/Katmandu" and "Asia/Calcutta").
/usr/share/zoneinfo.tgz is in the pfSense repo. It still has the old timezone names. It needs to be updated to match the current FreeBSD timezone data.
zoneinfo.tgz can be built from /usr/share/zoneinfo/* with code like:
echo "Factory" > /usr/share/zoneinfo.exclude
echo "posixrules" >> /usr/share/zoneinfo.exclude
echo "zone.tab" >> /usr/share/zoneinfo.exclude
cd /usr/share/zoneinfo/
tar -c -v -f - -X /usr/share/zoneinfo.exclude * | gzip -cv > /usr/share/zoneinfo.tgz
cd /usr/share
However, there are only a small number of files in /usr/share/zoneinfo/* in the pfSense distribution (certainly on my nanobsd system). So I don't see how I can create a full zoneinfo.tgz on my pfSense nanobsd system. zoneinfo.tgz needs to be built from a full copy of the zoneinfo data - presumably this could be done from a full vanilla install of FreeBSD 8.3-RC1 on an ordinary computer, which should have a full set of files in /usr/share/zoneinfo/* .
All the relevant timezones need to be in zoneinfo.tgz because:
/usr/local/www/system.php
/usr/local/www/wizard.php
use it to generate the drop-down list of valid timezones.
/etc/inc/system.inc system_timezone_configure
uses it to implement the timezone, including putting the correct timezone data in /etc/localtime
Packages that use local time-based rules need to have good data about the local time (e.g. SquidGuard).
Files