Skip to main content

parse_ts

Function parse_ts 

Source
pub fn parse_ts(raw: &str) -> DateTime<Utc>
Available on crate feature serve and (crate features serve-history-postgres or serve-history-sqlite) only.
Expand description

Inverse of fmt_ts. An unparseable value falls back to now rather than failing the read: a single corrupt timestamp must not make a whole template or audit row unusable, and every caller uses the value for display/ordering only.