Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date parsing issue in WSL #111

Closed
ihabunek opened this issue Sep 1, 2019 · 1 comment
Closed

Date parsing issue in WSL #111

ihabunek opened this issue Sep 1, 2019 · 1 comment

Comments

@ihabunek
Copy link
Owner

ihabunek commented Sep 1, 2019

Traceback (most recent call last):
  File "/home/ihabunek/projects/toot/toot/tui/app.py", line 153, in _done
    result = future.result()
  File "/usr/lib/python3.6/concurrent/futures/_base.py", line 425, in result
    return self.__get_result()
  File "/usr/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/ihabunek/projects/toot/toot/tui/app.py", line 246, in _load_statuses
    return [Status(s, self.app.instance) for s in data]
  File "/home/ihabunek/projects/toot/toot/tui/app.py", line 246, in <listcomp>
    return [Status(s, self.app.instance) for s in data]
  File "/home/ihabunek/projects/toot/toot/tui/entities.py", line 35, in __init__
    self.created_at = parse_datetime(data["created_at"])
  File "/home/ihabunek/projects/toot/toot/tui/utils.py", line 12, in parse_datetime
    return datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f%z").astimezone()
  File "/usr/lib/python3.6/_strptime.py", line 565, in _strptime_datetime
    tt, fraction = _strptime(data_string, format)
  File "/usr/lib/python3.6/_strptime.py", line 362, in _strptime
    (data_string, format))
ValueError: time data '2019-09-01T07:26:05.000Z' does not match format '%Y-%m-%dT%H:%M:%S.%f%z'
(toot) ihabunek@tomodachi:~/projects/toot$
@ihabunek
Copy link
Owner Author

ihabunek commented Sep 4, 2019

Duplicate of #114

@ihabunek ihabunek marked this as a duplicate of #114 Sep 4, 2019
@ihabunek ihabunek closed this as completed Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant