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; 10+ 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] 10+ messages in thread

end of thread, other threads:[~2015-08-27 22:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-11620-131@http.sourceware.org/bugzilla/>
2012-11-08 11:21 ` [Bug libc/11620] Bad design of timezone conversions maxim.yegorushkin at gmail dot com
2012-11-08 23:57 ` maxim.yegorushkin at gmail dot com
2012-11-09  0:23 ` maxim.yegorushkin at gmail dot com
2012-11-09  0:46 ` schwab@linux-m68k.org
2012-11-09 10:34 ` maxim.yegorushkin at gmail dot com
2013-09-20 11:01 ` david at lang dot hm
2014-06-30 18:03 ` fweimer at redhat dot com
2014-11-25 10:26 ` maxim.yegorushkin at gmail dot com
2015-08-27 22:04 ` [Bug time/11620] " jsm28 at gcc dot gnu.org
2010-05-22  7:57 [Bug libc/11620] New: " 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).