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
This should be accepted, as all one the listed times are perfectly valid UTC times. However, on my machine (Amsterdam time), it fails with the message "$[0]: 2020-03-29T02:00:00Z is an invalid date-time".
This is because DateTimeValidator.validateDateTime does not set the time zone of the SimpleDateFormat which therefore defaults to the system time. The first date in the list was the time when daylight savings time began, so the local timed jumped to 03:00, and 02:00 never existed. The other dates in the list are times when DST started elsewhere in the world, so it should be relatively easy to test in other time zones.
Proposal: Since the RFC-3339 time format does not provide sufficient information to determine whether daylight savings time might apply (only a time zone offset can be specified), set the SimpleDateFormat to the UTC time zone, so that all valid times are accepted.
The text was updated successfully, but these errors were encountered:
Schema:
Document:
This should be accepted, as all one the listed times are perfectly valid UTC times. However, on my machine (Amsterdam time), it fails with the message "$[0]: 2020-03-29T02:00:00Z is an invalid date-time".
This is because DateTimeValidator.validateDateTime does not set the time zone of the SimpleDateFormat which therefore defaults to the system time. The first date in the list was the time when daylight savings time began, so the local timed jumped to 03:00, and 02:00 never existed. The other dates in the list are times when DST started elsewhere in the world, so it should be relatively easy to test in other time zones.
Proposal: Since the RFC-3339 time format does not provide sufficient information to determine whether daylight savings time might apply (only a time zone offset can be specified), set the SimpleDateFormat to the UTC time zone, so that all valid times are accepted.
The text was updated successfully, but these errors were encountered: