[CAL-1672] Calendar override with the wrong dates and time
Issue Summary
When we set the availability for an timezone for example Europe/Berlin and enable Saturday from 12:00 am to 12:15 am on the date override instead of showing the Saturday appears the Friday between 10 pm to 10:15 pm.
This was reproduced in our system and in app.cal.com
Steps to Reproduce
- Go to Availability
- Create a new one
- Select the Timezone Europe/Amsterdam (set your computer to the same timezone)
- Enable Saturday and put it from 12:00 am to 12:15 am
- Save the availability
- Add an override
- In this step instead of showing the Saturday it will show the Friday
Attatchments
@CarlosSoares assign me this!
I've reproduced the issue
@ameeetgaikwad I can't assign it to you, maybe I don't have the right permissions
Hi, I Tried to recreate the issue but the date does not change to Friday.
@COFFINSELLAR I can reproduced all the time in all new calendars
@COFFINSELLAR it does for me
Somehow I am not able to replicate it 😑
Hi all, just wanted to let you know that I've started working on this bug. I've reproduced the issue on my local environment and have been investigating the code to identify the root cause.
Hi all, I believe that the dates and times in the calendar are being determined based on the user's default availability time zone, rather than the time zone the user has selected.
@ameeetgaikwad feel free to work on it, no need to be assigned here!
/bounty 50
💎 $50 bounty created by PeerRich
🙋 If you start working on this, comment /attempt #8833 to notify everyone
👉 To claim this bounty, submit a pull request that includes the text /claim #8833 somewhere in its body
📝 Before proceeding, please make sure you can receive payouts in your country
💵 Payment arrives in your account 2-5 days after the bounty is rewarded
💯 You keep 100% of the bounty award
🙏 Thank you for contributing to calcom/cal.com!
| Attempt | Started | Solution |
|---|---|---|
| 🟢 @XLAR-8 | May 17, 2023 | #8936 |
@PeerRich @CarlosSoares Do we want the Date overrides selection calendar to show the user's timezone date and time (which would be converted from the schedule's timezone to the user's timezone) or always the schedule's timezone date and time?
@XLAR-8: Your claim has been rewarded! 👉 Complete your Algora onboarding to collect the bounty.
🎉🎈 @XLAR-8 has been awarded $50! 🎈🎊