diff --git a/proxmox/src/tools/time.rs b/proxmox/src/tools/time.rs index 86bb39e7..b7f8cfdf 100644 --- a/proxmox/src/tools/time.rs +++ b/proxmox/src/tools/time.rs @@ -1,4 +1,5 @@ use anyhow::{bail, Error}; +use std::ffi::{CStr, CString}; /// Safe bindings to libc timelocal /// @@ -118,6 +119,6 @@ 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 { - let gmtime = proxmox::tools::time::gmtime(epoch)?; + let gmtime = gmtime(epoch)?; strftime("%FT%TZ", &gmtime) }