Skip to content

Daylight Savings not handled properly #147

@bricker

Description

@bricker

Daylight savings "falls back" in the states on November 4th, 2012, at exactly 2am. It goes backwards and repeats the 1am hour.

Time.new(2012, 11, 4, 0)
# => 2012-11-04 00:00:00 -0700

Chronic.parse("2012-11-04 at 12am")
# => 2012-11-04 01:00:00 -0700

Chronic.parse("2012-11-04")
# => 2012-11-04 11:00:00 -0800 

Those first two dates should return the same, and I would expect the last one to return 12pm. Hopefully this is a silly mistake I'm making, or there is a reasonable explanation. DST is a nightmare!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions