luci-base: use correct regex for time validation
authorDaniel Nilsson <daniel.nilsson94@outlook.com>
Sat, 2 Mar 2024 10:35:04 +0000 (11:35 +0100)
committerPaul Donald <itsascambutmailmeanyway@gmail.com>
Thu, 7 Mar 2024 18:52:22 +0000 (19:52 +0100)
commitc68ec2f910007c77874816fc0b829df78ca47aa0
tree2b9a9f02cc9ee5d7788122f2132daa6b1980e943
parent464c659a82050c2655f5f83539786ebf4b39264c
luci-base: use correct regex for time validation

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>
modules/luci-base/htdocs/luci-static/resources/validation.js