Skip to content

No support for midnight with :time type #188

@bbugh

Description

@bbugh

When setting 24:00, the gem seems to wrap the expected value to 0, so there seems to be no way to say "before midnight".

validates :w_day_begin, timeliness: { before: '24:00' }
                                                           vvvvvvvv wrap to zero?
 @details={:w_day_begin=>[{:error=>:before, :restriction=>"00:00:00"}]},
 @messages={:w_day_begin=>["before error message"]}>

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