|
From: | Riccardo Mottola |
Subject: | Re: New -base release? |
Date: | Tue, 16 Aug 2011 09:01:27 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 |
Hi
yes, that's pretty standard. /etc/localtime can be both a link or just a raw copy.How do you find the timezone on Free/Open BSD? What we need for timezone support is some way to obtain, from the operating system, the correct timezone name (eg. GB-Eire or Europe/Rome) There's no standard way to do that, so we already have system-specific code to get the info via the most common methods, and there's no real reason we can't add more for other OS's.At least speaking for OpenBSD, /etc/localtime is a symlink to the timezone. For me it looks like this: $ ls -l /etc/localtime lrwxr-xr-x 1 root wheel 33 Feb 20 11:02 /etc/localtime -> /usr/share/zoneinfo/Europe/Berlin
do a "file /usr/share/zoneinfo/Europe/Berlin" and you should see the timezone data file version.It appears I have both "old version" and "version 2" floating around. We are able to use version 2 files but not the old ones on freebsd. But I couldn't really understand inside the NSTimeZone code where we do read the contents of the file.
*light bulb on* ! Perhaps we do not read the conent, but we assume it is a symlink? I tried switching versions using a symlink and not by copying again.... I need to test that too. Darn.
Riccardo
[Prev in Thread] | Current Thread | [Next in Thread] |