Bug #3670

DateTime#jisx0301 returns incorrect format for dates before the Meiji period

Added by Jeremy Evans over 3 years ago. Updated almost 3 years ago.

[ruby-core:31658]
Status:Closed
Priority:Low
Assignee:tadayoshi funaba
Category:lib
Target version:1.9.3
ruby -v:ruby 1.9.2dev (2010-07-11 revision 28618) Backport:

Description

=begin
For dates before the Meiji period, DateTime#jisx0301 returns the time part twice:

$ irb -r date
ruby-1.9.2-rc2 > DateTime.jd(2405161).jisx0301
=> "M06.01.02T00:00:00+00:00"
ruby-1.9.2-rc2 > DateTime.jd(2405159).jisx0301
=> "1872-12-31T00:00:00+00:00T00:00:00+00:00"

A patch to fix this is attached.
=end

jisx0301.patch Magnifier - Patch for 1.9.2rc2 (probably applies cleanly to head) (234 Bytes) Jeremy Evans, 08/10/2010 02:48 AM

History

#1 Updated by Yui NARUSE over 3 years ago

  • Category set to lib
  • Assignee set to tadayoshi funaba
  • Priority changed from Low to Normal

=begin

=end

#2 Updated by Yui NARUSE over 3 years ago

  • Category set to lib
  • Target version set to 1.9.3

=begin

=end

#3 Updated by tadayoshi funaba over 3 years ago

  • Priority changed from Normal to Low

=begin

=end

#4 Updated by tadayoshi funaba over 3 years ago

  • Status changed from Open to Closed

=begin

=end

Also available in: Atom PDF