apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Non-default timezone formatting
Date Wed, 01 Sep 2004 20:27:13 GMT
I'm a developer on the log4cxx project 
(http://logging.apache.org/log4cxx) and am looking for suggestions to 
deal with one of our outstanding issues.  log4j allows the end user to 
specify that the times written to the logs be formatted in an arbitrary 
timezone, for example, the applications default time zone might be US 
Central, but the times in the logs to be written as US Eastern.  The 
current approach is to set the TZ environment variable, convert the 
time and set the TZ environment variable back.  Unfortunately, this has 
the possibility to introduce side effects to the main application and 
introduces threading issues.

I've reviewed the time routines in APR and they only seem to support 
the concept of a local time and GMT.  Do you have any suggestions on 
how to support formatting to an arbitary timezone in a somewhat 
portable manner?

View raw message