fix date picker

This commit is contained in:
pycook
2019-10-24 14:48:58 +08:00
parent 77ad772d95
commit c80291a1b3
2 changed files with 5 additions and 4 deletions

View File

@@ -47,8 +47,8 @@ type_map = {
Attribute.FLOAT: float,
Attribute.TEXT: str,
Attribute.TIME: str,
Attribute.DATE: lambda x: x.strftime("%Y%m%d"),
Attribute.DATETIME: lambda x: x.strftime("%Y%m%d %H:%M:%S"),
Attribute.DATE: lambda x: x.strftime("%Y-%m-%d"),
Attribute.DATETIME: lambda x: x.strftime("%Y-%m-%d %H:%M:%S"),
},
'serialize2': {
Attribute.INT: int,