-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Booking View with daylight savings (#306)
* Save the schedule based on the current date which should resolve the shifting schedule time issue. * Type hint models.Schedule * Add some virtual properties to get start/end time correctly from UTC. * Return available slots from schedule localized in the subscribers timezone (based on day to account for daylight savings), and fix the frontend from assuming it's utc time. * Adjust test_public_availability to cover a daylight savings example, where the start of the month is PST and the end is PDT both with the proper times. (And fix the missing timezone string check.) * Ensure our naive datetimes have utc timezone info before conversion. * Remove stray git conflict marker * Apply suggestions from code review Co-authored-by: Andreas <mail@devmount.de> * Quote-ify Availability as it's not defined at the point of reference. --------- Co-authored-by: Andreas <mail@devmount.de>
- Loading branch information
1 parent
3d9288e
commit cfa8f6c
Showing
5 changed files
with
78 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters