2025-07-31 15:42:15 +07:00
|
|
|
use tracing::{info};
|
2025-03-21 05:36:00 +07:00
|
|
|
use chrono::{DateTime, Utc};
|
|
|
|
|
|
2025-07-31 15:42:15 +07:00
|
|
|
/// Returns the current UTC date/time as an RFC3339 string.
|
2025-03-21 05:36:00 +07:00
|
|
|
pub fn get_iso_date() -> String {
|
2025-07-31 15:42:15 +07:00
|
|
|
info!("get_iso_date called");
|
|
|
|
|
let now: DateTime<Utc> = Utc::now();
|
|
|
|
|
let date_str = now.to_rfc3339();
|
|
|
|
|
info!(date_str = %date_str, "get_iso_date returning RFC3339 date string");
|
|
|
|
|
date_str
|
2025-03-21 05:36:00 +07:00
|
|
|
}
|