[Top][All Lists]

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

[bug #30026] Unknown time zone name `PST'

From: Richard Frith-Macdonald
Subject: [bug #30026] Unknown time zone name `PST'
Date: Tue, 01 Jun 2010 19:38:57 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

Follow-up Comment #3, bug #30026 (project gnustep):

Well .. looked like 'date' returned the correct time, and you have no
environment variable set to specify the zone .. so unless you have the zone
set in your user defaults or have set the localtime file in the GNUstep zones
directory (which seems unlikely) that just leaves two possibilities:
1. your system has an incorrect timezone filename
2. your system has not timezone filename, and is returning the incorrect
timezone in tzname.

My guess is that the problem is (1) ... so I've changed the order of
precedence so we call the tzset() function and look at tzname (if available)
before we resort to looking at the timezone filename.  This seems reasonable
to me as it's probably relatively easy for someone to link '/etc/localtime'
(or whatever is the local timezone file) to a file with the wrong name.  I
didn't write the original code ... and Im not even sure that looking at the
localtime file is supposed to be a reliable way of determining the timezone.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]