mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-15 06:05:58 -06:00
fix for date parsing
This commit is contained in:
parent
b151109756
commit
2e77865bd9
1 changed files with 5 additions and 2 deletions
|
|
@ -33,8 +33,11 @@ class DateTime(fields.DateTime):
|
|||
a = arrow.get(datetime.datetime.utcfromtimestamp(value))
|
||||
a = a.replace(tzinfo=TZ)
|
||||
except (ValueError, TypeError):
|
||||
a = arrow.get(value)
|
||||
a = a.to(TZ)
|
||||
try:
|
||||
a = arrow.get(value)
|
||||
a = a.to(TZ)
|
||||
except arrow.parser.ParserError:
|
||||
return value
|
||||
return fields.DateTime.parse(self, a.datetime)
|
||||
|
||||
def format(self, value):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue