apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <br...@xbc.nu>
Subject apr_implode_time and time zones
Date Thu, 28 Jun 2001 03:06:00 GMT
Right now, the Unix version of apr_implode_time completely ignores the 
tm_gmtoff field and does not adjust for the time zone.. This means that 
imploding an apr_time_t with a non-zero tm_gmtoffset will *not* yield a 
correct time value.

My first reaction upon noticing this was to simply go and fix it, but 
then I noticed that tests/testtime.c expects this behaviour.

Is this the expected behaviour, or is it a bug? When would you ever want 
to ignore the time zone, but wouldn't want to explicitly set the 
tm_gmtoff field to 0?


-- 
Brane ─îibej
    home:   <brane@xbc.nu>             http://www.xbc.nu/brane/
    work:   <branko.cibej@hermes.si>   http://www.hermes-softlab.com/
     ACM :   <brane@acm.org>            http://www.acm.org/



Mime
View raw message