Format SQL Durations as a string format

This commit is contained in:
Tobie Morgan Hitchcock 2022-07-05 11:36:10 +01:00
parent 6c5ddbf70f
commit 2d076c79a7

View file

@ -114,7 +114,7 @@ impl Serialize for Duration {
if is_internal_serialization() {
serializer.serialize_newtype_struct("Duration", &self.0)
} else {
serializer.serialize_some(&self.0)
serializer.serialize_some(&self.to_string())
}
}
}