aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--adenosine-pds/src/lib.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/adenosine-pds/src/lib.rs b/adenosine-pds/src/lib.rs
index ea61218..a7cb4ae 100644
--- a/adenosine-pds/src/lib.rs
+++ b/adenosine-pds/src/lib.rs
@@ -1,3 +1,4 @@
+use adenosine_cli::created_at_now;
use adenosine_cli::identifiers::{AtUri, Did, Nsid, Ticker, Tid};
use anyhow::{anyhow, Result};
use askama::Template;
@@ -891,10 +892,3 @@ fn record_view_handler(
}
.render()?)
}
-
-/// Helper to generate the current timestamp as right now, UTC, formatted as a string
-pub fn created_at_now() -> String {
- let now = time::OffsetDateTime::now_utc();
- now.format(&time::format_description::well_known::Rfc3339)
- .unwrap()
-}