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

Can't parse time format properly #2

Open
eastein opened this issue Sep 14, 2014 · 0 comments
Open

Can't parse time format properly #2

eastein opened this issue Sep 14, 2014 · 0 comments

Comments

@eastein
Copy link
Owner

eastein commented Sep 14, 2014

creating new irc connection
Traceback (most recent call last):
File "./dudemon", line 215, in handle
arrivals = [arr for arr in stations[0].arrivals() if arr.line in lines]
File "/home/eastein/git/ordat/cta/apis.py", line 151, in arrivals
return api.arrivals(mapid=self.id)
File "/home/eastein/git/ordat/cta/apis.py", line 347, in arrivals
tmst = Arrival.totime(data['tmst'])
File "/home/eastein/git/ordat/cta/apis.py", line 244, in totime
return time.strptime('%s CDT' % s, '%Y%m%d %H:%M:%S %Z')
File "/usr/lib/python2.7/_strptime.py", line 467, in _strptime_time
return _strptime(data_string, format)[0]
File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
(data_string, format))
ValueError: time data u'20140914 15:38:56 CDT' does not match format '%Y%m%d %H:%M:%S %Z'

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