Bug #10048
closed
Time comparison broken on Windows, Ruby 1.9.3
Added by kmcd (k mcd) almost 10 years ago.
Updated over 9 years ago.
Description
Ruby 2.0 on OSX:
Time.parse("2014-07-15 14:25:04") <= Time.now
=> true
Ruby 1.9.3 on Windows 7 Embedded:
Time.parse("2014-07-15 14:25:04") <= Time.now
=> false
- Priority changed from 5 to 3
Note that normal maintenance phase of 1.9.3 has already ended.
I can't reproduce it on my environment.
- Windows 7 x64
- ruby 1.9.3p545 (2014-02-24) [x64-mswin64_100]
Don't hide the result of ruby -v
. We are not espers.
What is shown by the following code?
p Time.parse("2014-07-15 14:25:04")
p Time.now
- Description updated (diff)
- Status changed from Open to Feedback
Not a bug - please close.
The embedded Windows system clock is incorrect.
(Not my choice to use embedded Windows).
- Status changed from Feedback to Closed
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0