Skip to content

fix: wrong slot starting times for half hour times zones#10161

Merged
alannnc merged 10 commits intomainfrom
fix/slot-issues
Jul 18, 2023
Merged

fix: wrong slot starting times for half hour times zones#10161
alannnc merged 10 commits intomainfrom
fix/slot-issues

Conversation

@CarinaWolli
Copy link
Copy Markdown
Member

@CarinaWolli CarinaWolli commented Jul 14, 2023

What does this PR do?

Fixes that UTC was used to find the time of the first slot. This resulted in wrong slot times for timezones that are not full hours like Asia/Kolkata +5:30.

Example:

availability: 7:30 - 12:00 (+5:30)

Slots for hourly event before:
Screenshot 2023-07-14 at 09 53 10

Slots for hourly event after:
Screenshot 2023-07-14 at 09 52 50

Fixes #10136

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How should this be tested?

  • Check if tests pass
  • See if slots start at full hours for and hourly event, availability starting at 7:30 in timezone 5:30

@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2023 3:04pm
cal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2023 3:04pm
cal-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2023 3:04pm
cal-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2023 3:04pm
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
qa ⬜️ Ignored (Inspect) Jul 17, 2023 3:04pm
ui ⬜️ Ignored (Inspect) Visit Preview Jul 17, 2023 3:04pm

@CarinaWolli CarinaWolli requested a review from a team July 14, 2023 13:56
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 14, 2023

Thank you for following the naming conventions! 🙏

@github-actions github-actions Bot added High priority Created by Linear-GitHub Sync 🐛 bug Something isn't working labels Jul 14, 2023
@zomars zomars added the core area: core, team members only label Jul 14, 2023
@CarinaWolli CarinaWolli changed the title fix timezone zone issue for first slot fix: timezone zone issue for first slot Jul 14, 2023
@alwaysmeticulous
Copy link
Copy Markdown

alwaysmeticulous Bot commented Jul 14, 2023

🤖 Meticulous spotted visual differences in 109 of 193 screens tested: view and approve differences detected.

Last updated for commit 393a005. This comment will update as new commits are pushed.

@CarinaWolli CarinaWolli changed the title fix: timezone zone issue for first slot fix: wrong slot starting times for half hour times zones Jul 14, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 14, 2023

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@deploysentinel
Copy link
Copy Markdown

deploysentinel Bot commented Jul 14, 2023

No failed tests 🎉

@CarinaWolli
Copy link
Copy Markdown
Member Author

CarinaWolli commented Jul 14, 2023

Looking at the one failed test

EDIT: tests are fixed

Comment thread apps/web/test/lib/getSchedule.test.ts Outdated
alannnc
alannnc previously approved these changes Jul 14, 2023
Copy link
Copy Markdown
Contributor

@alannnc alannnc left a comment

Choose a reason for hiding this comment

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

Code looks good! If test pass we should merge now.

Copy link
Copy Markdown
Contributor

@zomars zomars left a comment

Choose a reason for hiding this comment

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

cool

@alannnc alannnc merged commit 2db4998 into main Jul 18, 2023
@alannnc alannnc deleted the fix/slot-issues branch July 18, 2023 00:57
fritterhoff pushed a commit to hm-edu/cal.com that referenced this pull request Jul 25, 2023
* fix timezone zone issue for first slot

* fix failed test in getSchedule

* Update apps/web/test/lib/getSchedule.test.ts

---------

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Co-authored-by: alannnc <alannnc@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working core area: core, team members only High priority Created by Linear-GitHub Sync

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

[CAL-2170] Wrong slot starting times for timezones that are not full hours

3 participants