Always use common.datetime_strftime for datetime formating
Otherwise it will fail for dates before 1900. issue5930 review28881002
This commit is contained in:
1 parent
fd3c77490f
commit
f7a44c0cfc
1 file changed
+1
-1
@@ -387,7 +387,7 @@ class Time(Date):
|
||||
return ''
|
||||
value = record[self.attrs['name']].get_client(record)
|
||||
if value is not None:
|
||||
return value.strftime(self.renderer.props.format)
|
||||
return datetime_strftime(value, self.renderer.props.format)
|
||||
else:
|
||||
return ''
|
||||
|
||||
|
||||
Reference in new issue
Block a user