[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #33455] Time zone issue on Linux systems running in the UK
From: |
Richard Frith-Macdonald |
Subject: |
[bug #33455] Time zone issue on Linux systems running in the UK |
Date: |
Thu, 02 Jun 2011 08:12:12 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1 |
Follow-up Comment #6, bug #33455 (project gnustep):
> could just try and read the time zone data from /etc/localtime if it exists?
Yes, that would give us working timezone offsets (so we could display the
correct date and hours/minutes), but it wouldn't give us the timezone name ...
so use/display of the zone name would be broken.
I've hacked in code for debian (to look in /etc/timezone) and redhat/centos
(to look in /etc/sysconfig/clock) for the name of the timezone ... of course
all this is horribly system dependent because there seems to be no portable
mechanism to obtain full timezone info. The lack of a standard (and the need
for OpenStep compatibility) is the historical reason why gnustep-base provides
its own timezone data.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33455>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/