M
Matthew Keene
I have found what appears to be a bug in either the Date or the
ParseDate standard libraries
The program below
require 'date'
require 'parsedate'
p Time.new
p Date._parse(Time.new.to_s)
p ParseDate.parsedate(Time.new.to_s)
produces the following output:
Sat May 14 23:28:42 AUS Eastern Standard Time 2005
{:zone=>"AUS", :sec=>42, :hour=>23, :wday=>6, :mday=>14, :min=>28,
:mon=>5}
[nil, 5, 14, 23, 28, 42, "AUS", 6]
The output from the ParseDate contains a year of nil (which I know isn't
right), and this seems to be because the _parse method of Date (which is
what ParseDate uses) doesn't return a year key in the hash.
Is there something I'm missing here ? The documentation for these
standard libraries doesn't have any description for either the parsedate
method of ParseDate or the _parse method of Date, so I can't fully tell
if this is working as designed, but it seems unlikely.
What is the procedure for filing a bug for cases like this ?
ParseDate standard libraries
The program below
require 'date'
require 'parsedate'
p Time.new
p Date._parse(Time.new.to_s)
p ParseDate.parsedate(Time.new.to_s)
produces the following output:
Sat May 14 23:28:42 AUS Eastern Standard Time 2005
{:zone=>"AUS", :sec=>42, :hour=>23, :wday=>6, :mday=>14, :min=>28,
:mon=>5}
[nil, 5, 14, 23, 28, 42, "AUS", 6]
The output from the ParseDate contains a year of nil (which I know isn't
right), and this seems to be because the _parse method of Date (which is
what ParseDate uses) doesn't return a year key in the hash.
Is there something I'm missing here ? The documentation for these
standard libraries doesn't have any description for either the parsedate
method of ParseDate or the _parse method of Date, so I can't fully tell
if this is working as designed, but it seems unlikely.
What is the procedure for filing a bug for cases like this ?