Changes between Initial Version and Version 1 of Ticket #1486


Ignore:
Timestamp:
Jul 7, 2007 10:52:38 AM (7 years ago)
Author:
igloo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1486 – Description

    initial v1  
    22 
    33Code to reproduce it: 
    4  
     4{{{ 
    55    import Monad 
    66    import Data.Time 
     
    1313        z <- (liftM timeZoneName) getCurrentTimeZone 
    1414        putStrLn z 
     15}}} 
    1516 
    1617Running this program around 04:35 PM I get the following results 
    1718 
    1819On Linux (a recent Ubuntu with GHC 6.6.1 compiled from source) 
    19  
     20{{{ 
    202104:35:48 PM 
    2122EDT 
    22  
     23}}} 
    2324On Windows (GHC 6.6.1 from installer) I get 
    24  
     25{{{ 
    252612:36:04 AM 
    2627Eastern Daylight Time 
    27  
     28}}} 
    2829Looks like the Windows version is counting in the wrong direction. I made some tests in GHCi on both machines an get this: 
    2930 
    3031On Windows: 
     32{{{ 
    3133Prelude> :m Monad Data.Time Locale 
    3234Prelude Locale Data.Time Monad> z <- getCurrentTimeZone 
     
    3436Prelude Locale Data.Time Monad> timeZoneMinutes z 
    3537240 
     38}}} 
    3639 
    3740On Linux: (same commands) 
     41{{{ 
    3842Prelude Locale Data.Time Monad> timeZoneMinutes z 
    3943-240 
     44}}} 
    4045 
    4146Cheers,