Yukihiro Matsumoto
5/14/2005 2:24:00 PM
Hi,
In message "Re: Possible bug in Date/ParseDate"
on Sat, 14 May 2005 22:40:28 +0900, Matthew Keene <dfg778@yahoo.com.au> writes:
|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]
Date._parse does not recognize long timezone including spaces, such as
"AUS Eastern Standard Time". It is a known limitation. I'm not sure
there is any standard for the timezone format.
matz.