From b164904a4f28b1277f5c1f68f30fd1ab9466d496 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sun, 13 Sep 2020 11:42:15 +0200 Subject: [PATCH] src/tools/time.rs: rename rfc_3339 to rfc3339 --- proxmox/src/tools/time.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();