Format SQL Durations as a string format
This commit is contained in:
parent
6c5ddbf70f
commit
2d076c79a7
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ impl Serialize for Duration {
|
||||||
if is_internal_serialization() {
|
if is_internal_serialization() {
|
||||||
serializer.serialize_newtype_struct("Duration", &self.0)
|
serializer.serialize_newtype_struct("Duration", &self.0)
|
||||||
} else {
|
} else {
|
||||||
serializer.serialize_some(&self.0)
|
serializer.serialize_some(&self.to_string())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue