diff --git a/proxmox/src/tools/time.rs b/proxmox/src/tools/time.rs index 67a3c52d..ef6141f5 100644 --- a/proxmox/src/tools/time.rs +++ b/proxmox/src/tools/time.rs @@ -121,13 +121,13 @@ pub fn strftime(format: &str, t: &libc::tm) -> Result { } /// Convert Unix epoch into RFC3339 UTC string -pub fn epoch_to_rfc_3339_utc(epoch: i64) -> Result { +pub fn epoch_to_rfc3339_utc(epoch: i64) -> Result { let gmtime = gmtime(epoch)?; strftime("%FT%TZ", &gmtime) } /// Convert Unix epoch into RFC3339 local time with TZ -pub fn epoch_to_rfc_3339(epoch: i64) -> Result { +pub fn epoch_to_rfc3339(epoch: i64) -> Result { let localtime = localtime(epoch)?; @@ -154,7 +154,7 @@ pub fn epoch_to_rfc_3339(epoch: i64) -> Result { } /// Parse RFC3339 into Unix epoch -pub fn parse_rfc_3339(i: &str) -> Result { +pub fn parse_rfc3339(i: &str) -> Result { let input = i.as_bytes();