Closed brutuscat closed 11 years ago
Updated the code to avoid using "%s" in DateTime.strptime
since there is a rubinius bug. See issue #2082
Now all tests pass
@brutuscat I might suggest testing for RUBY_ENGINE
before using it, eg:
RBX = defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
@dkubb BTW for this stuff I'd like to see a gem. I see this kind of code quite often in devtools, tasks, edgecases etc. Your opinion? Sure platform specific hacks/branches should be avoided at all costs, but when we have to do them we should use our standard "deduplicate into library" pattern?
This way integer unix-epoch timestamp and float unix-epoch timestamp with microseconds as fractional part can be coerced into a DateTime attribute.