mirror of
https://git.proxmox.com/git/proxmox
synced 2025-07-05 04:28:00 +00:00
time: allow leap seconds when parsing RFC3339
we don't ever produce those, but they are valid RFC3339 strings Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
ed7c58cf47
commit
ceefaa8095
@ -257,7 +257,7 @@ pub fn parse_rfc3339(i: &str) -> Result<i64, Error> {
|
||||
expect(13, b':')?;
|
||||
tm.set_min(check_max(digit(14)?*10 + digit(15)?, 59)?)?;
|
||||
expect(16, b':')?;
|
||||
tm.set_sec(check_max(digit(17)?*10 + digit(18)?, 59)?)?;
|
||||
tm.set_sec(check_max(digit(17)?*10 + digit(18)?, 60)?)?;
|
||||
|
||||
let epoch = tm.into_epoch()?;
|
||||
if tz == b'Z' {
|
||||
|
Loading…
Reference in New Issue
Block a user