Ensure SQL datetimes are formatted correctly as strings

This commit is contained in:
Tobie Morgan Hitchcock 2022-10-17 03:25:58 +01:00
parent d2761c6bf6
commit eca8cd8d1d

View file

@ -53,7 +53,7 @@ impl Deref for Datetime {
impl Datetime {
pub fn to_raw(&self) -> String {
self.0.to_string()
self.0.to_rfc3339_opts(SecondsFormat::AutoSi, true)
}
}