first pass of merging in warp (doesn't build)

This commit is contained in:
Ryan Ward
2026-07-01 16:08:58 -05:00
parent 2f64909469
commit 4770ac06b5
3662 changed files with 414574 additions and 89772 deletions
+8
View File
@@ -0,0 +1,8 @@
use chrono::{DateTime, Utc};
/// Parse an RFC 3339 timestamp into a UTC `DateTime`.
pub(crate) fn parse_rfc3339(s: &str) -> Result<DateTime<Utc>, String> {
DateTime::parse_from_rfc3339(s)
.map(|dt| dt.with_timezone(&Utc))
.map_err(|e| format!("invalid RFC 3339 timestamp '{s}': {e}"))
}