Merge "Add "cache_ok=False" flag to TypeDecorator TruncatedDateTime()"

This commit is contained in:
Zuul
2021-05-18 13:59:09 +00:00
committed by Gerrit Code Review

View File

@@ -77,6 +77,8 @@ class TruncatedDateTime(types.TypeDecorator):
impl = types.DateTime
cache_ok = False
def process_bind_param(self, value, dialect):
return value.replace(microsecond=0) if value else value