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

Organization timezone set to UTC (to avoud an issue) #217

Merged
merged 2 commits into from
Aug 21, 2017
Merged

Organization timezone set to UTC (to avoud an issue) #217

merged 2 commits into from
Aug 21, 2017

Conversation

eferro
Copy link
Contributor

@eferro eferro commented Aug 18, 2017

Organization.TIMEZONE is None by default so when we try to use pytz.timezone(card.py#L376 and card.py#L473) we obtain an exception

This change set the default Organization.TIMEZONE to 'UTC' to workaround the problem. I think that a better solution is to detect the local configuration using tzlocal for example.
If you are ok with this change I also can send a PR.

BTW I also fixed a type in the test_card that use a wrong name for a property.

@sarumont sarumont merged commit 88a4eca into sarumont:master Aug 21, 2017
@sarumont
Copy link
Owner

Thanks for the PR! I think using tzlocal would be a good idea, too. It should fall back to UTC if the local timezone cannot be determined.

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

Successfully merging this pull request may close these issues.

2 participants