Follow-up Comment #7, 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.

Sure. I was just suggesting to use this as a fallback before resorting to
tzname. This function seems to return only time zone abbreviations as well
(probably the ones contained in /etc/localtime), so we aren't able to display
proper time zone names in this case either. But at least we would be using the
correct timezone offsets.

> 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

Well, thanks, this at least solves my original problem.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33455>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to