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: <[EMAIL PROTECTED]> http://www.xbc.nu/brane/ work: <[EMAIL PROTECTED]> http://www.hermes-softlab.com/ ACM : <[EMAIL PROTECTED]> http://www.acm.org/




Reply via email to