Skip to content

Parse "24:00" on the last day of month: Should return 0:00 of the first day of the next month  #39

Description

@hrigu
# 24:00 of the last day of month: returns nil, should return 2019-08-01 00:00:00 +0200
Timeliness::Parser.parse("2019-07-31 24:00")
=> nil

# for non last day in month, it works as expected
Timeliness::Parser.parse("2019-07-30 24:00")
=> 2019-07-31 00:00:00 +0200

I can't imagine a reason for this behaviour. I've tested it with version 0.4.3.

Thank you for a fix, an explanation or a work-around!
Christian

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions