Before this change, values further in time than 23:59:59 was allowed, such as 24:00:00 and 23:60:00. Leap seconds is accounted for so 60 is allowed in the seconds parameter.
Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
(cherry picked from commit
c68ec2f910007c77874816fc0b829df78ca47aa0)
},
timehhmmss: function() {
- return this.assert(this.value.match(/^[0-6][0-9]:[0-6][0-9]:[0-6][0-9]$/),
+ return this.assert(this.value.match(/^(?:[01]\d|2[0-3]):[0-5]\d:(?:[0-5]\d|60)$/),
_('valid time (HH:MM:SS)'));
},