-
Notifications
You must be signed in to change notification settings - Fork 207
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
Today's date ignores local_timezone #836
Comments
Thanks for having a look, I don't think this a fixable via configuration, but a proper bug. |
If you find the time, please do send a PR. |
I can reproduce this, the behavior is just more consistently wrong nowadays. |
Root of the issue seems to be that we compare against |
We probably need to replace every call to today = pytz.UTC.localize(dt.datetime.utcnow()).astimezone(local_timezone).date() |
My config has the following:
My computer's timezone is set to UTC. It's displaying
2019-01-22 06:30:00
right now.In Los Angeles, the time is currently
2019-01-21 22:30:00
.When I run khal, this is what I get:
I expect
Today, 2019-01-22
to be the 21st of January, not the 22nd of January.The event times show up correctly, but they are truncated if their day is not shown.
This happens for me both via
pip install khal
and from runningmaster
.Is this something fixable from my configuration or is it worth me making a pull request for?
The text was updated successfully, but these errors were encountered: