From: Ryan Davis Date: 2008-01-07T04:16:39+09:00 Subject: Re: Time.gm(1969) chokes on Windows On Jan 4, 2008, at 07:24 , Tim Ferrell wrote: > Obviously the string in question is a timestamp - YAML/Syck handles > plain pre-1970 dates just fine. So, assuming I have valid pre-1970 > timestamps to deal with, I am left with no choice BUT to work around > Syck's (IMO shortsighted) choice of using Time.gm rather than > DateTime, > which I'm fairly certain was done for performance reasons... Still, it > seems a rather bad choice given that it is not always portable. I'm gonna have to call bullshit on this one, given that you were asked twice to provide the bad YAML in question and it never materialized, but especially given that the following seems to work just fine: >> YAML.dump(Time.gm(1969, 1, 1)) => "--- 1969-01-01 00:00:00 Z\n" >> YAML.load(YAML.dump(Time.gm(1969, 1, 1))) => Wed Jan 01 00:00:00 UTC 1969