nolta/Calendar.jl

Month field is not parsing properly

amitmurthy opened this issue · 3 comments

On my Ubuntu 13.04 32-bit machine, the month field is not parsing correctly:

julia> t = Calendar.parse("yyyy-MM-DD", "2009-01-12")
Jan 12, 2009 12:00:00 AM GMT+05:30

julia> t = Calendar.parse("yyyy-MM-DD", "2009-10-12")
Jan 12, 2009 12:00:00 AM GMT+05:30

julia> t = Calendar.parse("yyyy-MM-DD", "2009-06-12")
Jan 12, 2009 12:00:00 AM GMT+05:30

julia> t = Calendar.parse("yyyy-MM-DD", "2009-06-12", "GMT")
Jan 12, 2009 12:00:00 AM GMT

julia> t = Calendar.parse("yyyy-MM-DD", "2009-06-13")
Jan 13, 2009 12:00:00 AM GMT+05:30

julia> t = Calendar.parse("yyyy-MM-DD", "1998-06-13")
Jan 13, 1998 12:00:00 AM GMT+05:30

Could be an ICU issue rather than Calndar.jl. Can others please test out the above too?

Thanks.

I see the same issue on OS X.

DD should be dd.

Right. Thanks.