mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-15 06:05:58 -06:00
fix: don't parse non-valid dates
This commit is contained in:
parent
2e77865bd9
commit
705c86ec0d
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ class DateTime(fields.DateTime):
|
|||
a = arrow.get(value)
|
||||
a = a.to(TZ)
|
||||
except arrow.parser.ParserError:
|
||||
return value
|
||||
return None
|
||||
return fields.DateTime.parse(self, a.datetime)
|
||||
|
||||
def format(self, value):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue