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

wrong parsing 'Sun 4 Mar 07:20:44 CET 2018' #226

Open
fenchu opened this issue Feb 9, 2018 · 0 comments
Open

wrong parsing 'Sun 4 Mar 07:20:44 CET 2018' #226

fenchu opened this issue Feb 9, 2018 · 0 comments

Comments

@fenchu
Copy link

fenchu commented Feb 9, 2018

This is systemtime on my rasberry pie running rasbian:

#!/usr/bin/env python3
import parsedatetime
import pytz
cal = parsedatetime.Calendar()
d='Sun  4 Mar 07:20:44 CET 2018'
ts, _ = cal.parseDT(datetimeString=d, tzinfo=pytz.timezone("CET"))
print(ts)
./timestamp2.py
2018-03-04 20:18:00+01:00
$ pip freeze | egrep '(parsedatetime|pytz)'
parsedatetime==2.4
pytz==2017.3
$ python3 --version
Python 3.6.4
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