You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A snippet of your model validation code code would be very useful here. But it looks like the date given in the validation is a Date object while @appointment.end_date is an ActiveSupport::TimeWithZone object.
Try this -
DATE_GIVEN_IN_THE_VALIDATION.in_time_zone.utc
@appointment.end_date.utc
I think you will find that the validation is right :)
Our tests run in random time zones. In some of the time zones, the date validator does not seem to work:
The code:
The output:
The text was updated successfully, but these errors were encountered: