[Haskell-cafe] Working with multiple time zones

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Sun Feb 17 13:43:48 EST 2008


On Feb 17, 2008, at 13:22 , Daniel Fischer wrote:

> Am Sonntag, 17. Februar 2008 17:26 schrieb Daniel Fischer:
>> Looking at the code in HsTime.c, it might be a difference between  
>> localtime
>> and localtime_r.
>
> Indeed, mucking about a bit with HsTime.c, so that either
> a) localtime is called instead of localtime_r
> or
> b) tzset() is done before localtime_r,
> it works as it should (on my box at least).

Yes, some platforms require tzset() to recognize timezone changes.

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH




More information about the Haskell-Cafe mailing list