Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Truffle] Time#clone wrong value #2884

Closed
bjfish opened this issue Apr 28, 2015 · 2 comments
Closed

[Truffle] Time#clone wrong value #2884

bjfish opened this issue Apr 28, 2015 · 2 comments
Assignees

Comments

@bjfish
Copy link
Contributor

bjfish commented Apr 28, 2015

This causes a number of CGI specs to fail.
Expected

ruby -e 'a = Time.new; puts "#{a} == #{a.clone}";puts "#{a == a.clone}"'
2015-04-28 07:32:59 -0500 == 2015-04-28 07:32:59 -0500
true

~/Documents/jruby/bin/jruby -e 'a = Time.new; puts "#{a} == #{a.clone}";puts "#{a == a.clone}"'
2015-04-28 07:33:37 -0500 == 2015-04-28 07:33:37 -0500
true

Actual

$ ~/Documents/jruby/bin/jruby -X+T -e 'a = Time.new; puts "#{a} == #{a.clone}";puts "#{a == a.clone}"'
2015-04-28 12:34:25 UTC == 1969-12-31 18:00:00 -0600
false

@chrisseaton chrisseaton added this to the truffle-dev milestone Apr 28, 2015
@chrisseaton
Copy link
Contributor

I think @eregon is planning to write Time from scratch when he gets back from holiday, so I'll assign to him.

@eregon eregon closed this as completed in e9a4c9c May 11, 2015
@eregon
Copy link
Member

eregon commented May 11, 2015

Fixed. I do not plan to rewrite Time yet, unless it becomes critical.

@enebo enebo added this to the Invalid or Duplicate milestone Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants