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

Prefill schedule timezone #769

Merged
merged 2 commits into from
Nov 25, 2024
Merged

Conversation

MelissaAutumn
Copy link
Member

@MelissaAutumn MelissaAutumn commented Nov 25, 2024

Fixes #763

Also I had to move normalize_secrets as for some reason in my vm a starlette package was trying to import our secrets.py file. 🤔 Utils probably works for that.

But this change adds a data migration that will set the timezone of the schedule to the subscriber's timezone. If the subscriber doesn't have a timezone (rare, and I think we've corrected these cases already) it sets them to UTC, and then sets the schedule to UTC.

@MelissaAutumn MelissaAutumn self-assigned this Nov 25, 2024
@MelissaAutumn MelissaAutumn changed the title Bugs/764 prefill schedule timezone Prefill schedule timezone Nov 25, 2024
Copy link
Collaborator

@devmount devmount left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this works!

@MelissaAutumn MelissaAutumn merged commit 6369d86 into main Nov 25, 2024
4 checks passed
@MelissaAutumn MelissaAutumn deleted the bugs/764-prefill-schedule-timezone branch November 25, 2024 20:10
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.

Can't book on calendar
2 participants