Skip to content

Commit

Permalink
Update formatter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alstomli authored Dec 3, 2019
1 parent 38b81db commit 17b3356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arrow/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ def _format_token(self, dt, token):

if token == "X":
microsecond = str(int(dt.microsecond))
return str(calendar.timegm(dt.utctimetuple())) + '.' + microsecond
return str(calendar.timegm(dt.utctimetuple())) + "." + microsecond
if token == "x":
microsecond = str(int(dt.microsecond))
return str(calendar.timegm(dt.utctimetuple())) + microsecond.rstrip('0')
return str(calendar.timegm(dt.utctimetuple())) + microsecond.rstrip("0")

if token == "ZZZ":
return dt.tzname()
Expand Down

0 comments on commit 17b3356

Please sign in to comment.