Project

General

Profile

Actions

Bug #3670

closed

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

Added by jeremyevans0 (Jeremy Evans) over 13 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2010-07-11 revision 28618)
Backport:
[ruby-core:31658]

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


Files

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

Updated by naruse (Yui NARUSE) over 13 years ago

  • Category set to lib
  • Assignee set to tadf (tadayoshi funaba)
  • Priority changed from 3 to Normal

=begin

=end

Actions #2

Updated by naruse (Yui NARUSE) over 13 years ago

  • Category set to lib
  • Target version set to 1.9.3

=begin

=end

Actions #3

Updated by tadf (tadayoshi funaba) over 13 years ago

  • Priority changed from Normal to 3

=begin

=end

Actions #4

Updated by tadf (tadayoshi funaba) over 13 years ago

  • Status changed from Open to Closed

=begin

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0