chronic icon indicating copy to clipboard operation
chronic copied to clipboard

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

Open Hirurg103 opened this issue 9 years ago • 1 comments

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?

Hirurg103 avatar Apr 13 '16 22:04 Hirurg103

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.

davispuh avatar Apr 14 '16 00:04 davispuh