Skip to content

Commit

Permalink
Update flow/record/fieldtypes/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Schamper <[email protected]>
  • Loading branch information
yunzheng and Schamper authored Oct 16, 2023
1 parent 9caac4a commit 9b268b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flow/record/fieldtypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ def __new__(cls, *args, **kwargs):
# YYYY-mm-dd length: 10
tstr = arg
tzstr = ""
if tzpos := arg[10:].find("+") + 1 or arg[10:].find("-") + 1:
tzsearch = arg[10:]
if tzpos := tzsearch.find("+") + 1 or tzsearch.find("-") + 1:
tzstr = arg[10 + tzpos - 1 :]
tstr = arg[: 10 + tzpos - 1]

Expand Down

0 comments on commit 9b268b2

Please sign in to comment.