[MacRuby] #946: DateTime.now is broken in MacRuby 0.7
#946: DateTime.now is broken in MacRuby 0.7 -----------------------------+---------------------------------------------- Reporter: macruby@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -----------------------------+---------------------------------------------- load macirb. Try : require 'date' DateTime.methods(false) (note now mehod, which worked just fine in 0.6) now type: DateTime.now -- Ticket URL: <http://www.macruby.org/trac/ticket/946> MacRuby <http://macruby.org/>
#946: DateTime.now is broken in MacRuby 0.7 -----------------------------+---------------------------------------------- Reporter: macruby@… | Owner: eloy.de.enige@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -----------------------------+---------------------------------------------- Changes (by lsansonetti@…): * owner: lsansonetti@… => eloy.de.enige@… Comment: It seems to be a problem in macirb. DateTime.now works fine in macruby itself. {{{ $ /usr/local/bin/macruby -r date -e 'p DateTime.now' #<DateTime: 2010-10-08T19:04:27-07:00 (353588916445681/144000000,-7/24,2299161)> $ macirb irb(main):001:0> require 'date' => true irb(main):002:0> DateTime.now NoMethodError: undefined method `subsec' for 2010-10-08 19:04:36 -0700:Time irb(main):003:0> ^D$ }}} Eloy can you investigate? -- Ticket URL: <http://www.macruby.org/trac/ticket/946#comment:1> MacRuby <http://macruby.org/>
#946: macirb: DateTime.now is broken in MacRuby 0.7 -----------------------------+---------------------------------------------- Reporter: macruby@… | Owner: eloy.de.enige@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -----------------------------+---------------------------------------------- -- Ticket URL: <http://www.macruby.org/trac/ticket/946#comment:2> MacRuby <http://macruby.org/>
#946: macirb: DateTime.now is broken in MacRuby 0.7 -----------------------------+---------------------------------------------- Reporter: macruby@… | Owner: eloy.de.enige@… Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: worksforme Keywords: | -----------------------------+---------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => worksforme Comment: Actually, I can't reproduce the problem with MacRuby trunk. {{{ $ /usr/local/bin/macirb irb(main):001:0> require 'date' => true irb(main):002:0> DateTime.now => #<DateTime: 2010-10-08T19:27:26-07:00 (53038337811639313/21600000000,-7/24,2299161)> irb(main):003:0> ^D$ }}} Could you provide more information about the problem? -- Ticket URL: <http://www.macruby.org/trac/ticket/946#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby