mojombo / chronic

Chronic is a pure Ruby natural language date parser.
http://injekt.github.com/chronic
MIT License
3.24k stars 458 forks source link

Wrong result when parsing 27-03-2016 00:** #331

Open Hirurg103 opened 8 years ago

Hirurg103 commented 8 years ago

We set timezone to the user's timezone like

Time.zone = 'London'
Chronic.time_class = Time.zone

We read this information in the chronic's wiki

Recently we had a bug when Chronic.parse('27-03-2016 00:01') returns Mon, 28 Mar 2016 00:01:00 BST +01:00 which is 1 day bigger than the parsed date. Later we found out that 28 Mar is the date when time is switching to the summertime

Could you help us to fix this issue please?

davispuh commented 8 years ago

It is known issue that Chronic doesn't work correctly when DST is involved, there are loads of such issues. There isn't really much you can do about it as Chronic is just broken in this case.

Anyway it will be fixed in next Chronic version as I'm working on quite big rewrite which fixes a lot of issues including DST but it's unknown when it will be finished.