[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Time class is dependent on system call?

Wes Gamble

4/3/2008 12:04:00 AM

I just noticed that the output of Time.now.zone is different between
Windows and Linux ("Central Daylight Time" vs. "CDT", respectively).

I assume this indicates that the time zone is pulled directly from the
system time without any modification?

Is there a way to force the output to be consistent b/w the 2 platforms
without resorting to inspecting Config::CONFIG['target_os']?

Thanks,
Wes
--
Posted via http://www.ruby-....