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

fix parsing of dateformat for not matching locale #2

Open
jebuss opened this issue Nov 9, 2016 · 1 comment
Open

fix parsing of dateformat for not matching locale #2

jebuss opened this issue Nov 9, 2016 · 1 comment

Comments

@jebuss
Copy link
Member

jebuss commented Nov 9, 2016

date = datetime.strptime( ret.headers['Last-Modified'], '%a, %d %b %Y %H:%M:%S GMT' ) in `starry_night.skycam.py' fails if the tame format of the local computer and that one where you request via http disagree

@maxnoe
Copy link
Member

maxnoe commented Nov 10, 2016

Maybe using dateutil.parser.parse helps, as this can guess the format. Or setting a fixed locale for the script using the locale module

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

2 participants