We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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".
24:00
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"]}>
The text was updated successfully, but these errors were encountered:
@bbugh this is old :), but i just had the same issue,
i have the same issue:
start_time: 23:00 end_time: 24:00
this will trigger this validation to raise exception because 24:00 will be converted to 00:00
validates_time :end_time, after: :start_time, after_message: _('End time should be after start time'), if: :start_time
Sorry, something went wrong.
No branches or pull requests
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".The text was updated successfully, but these errors were encountered: