public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/11620] New: Bad design of timezone conversions
@ 2010-05-22 7:57 hadmut at danisch dot de
2010-05-22 13:49 ` [Bug libc/11620] " drepper at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: hadmut at danisch dot de @ 2010-05-22 7:57 UTC (permalink / raw)
To: glibc-bugs
Hi,
glibc has pretty good functions and timezone definitions to convert
unix/universal time to local time zones.
But unfortunately the functions are based on the assumption that you always need
only one timezone at a time, your local time. glibc supports using only a single
time zone per program run, the one set in the TZ environment variable.
This is design of the pre-internet era. Nowadays we have to write programs like
webservers and other communication servers, which can deal with any timezone
requested and with several timezones simultaneously.
You can experience that lack of functionality in the fact, that most programs,
that offer a customer to configure his time zones do not allow him to choose,
e.g. Europe/Berlin, but timeoffsets only, like GMT+1, GMT+2, which needs to
updated for every change between summer and wintertime or simply gives wrong
data, e.g. in a calendar.
Would be nice and appropriate if there were functions to read in any time zone
definition given by name into a variable and to have conversion functions like
localtime and mktime to use with any time zone definition passed as a variable.
Since these functions already exist, they just have to be modified to not use a
static variable but a given parameter, this should be easy to implement.
regards
--
Summary: Bad design of timezone conversions
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: hadmut at danisch dot de
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11620
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-22 13:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-22 7:57 [Bug libc/11620] New: Bad design of timezone conversions hadmut at danisch dot de
2010-05-22 13:49 ` [Bug libc/11620] " drepper at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).