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

fix: booking day wrong in booking list #12007

Merged
merged 2 commits into from
Oct 24, 2023
Merged

fix: booking day wrong in booking list #12007

merged 2 commits into from
Oct 24, 2023

Conversation

CarinaWolli
Copy link
Member

What does this PR do?

Fixes the following scenario:

User Timezone: New York

If there is a booking at 11:00 PM on 9th of November, it was shown on Nov 10th in the list of upcoming bookings:
Screenshot 2023-10-19 at 17 17 25

It's showed the day of the UTC time.

@vercel
Copy link

vercel bot commented Oct 19, 2023

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

Name Status Preview Comments Updated (UTC)
ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 20, 2023 6:42am
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 20, 2023 6:42am
cal-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 20, 2023 6:42am
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 20, 2023 6:42am
qa 🔄 Building (Inspect) Visit Preview 💬 Add feedback Oct 20, 2023 6:42am
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 20, 2023 6:42am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Oct 20, 2023 6:42am

@github-actions
Copy link
Contributor

github-actions bot commented Oct 19, 2023

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link to collect XP and win prizes!

@github-actions
Copy link
Contributor

github-actions bot commented Oct 19, 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

deploysentinel bot commented Oct 19, 2023

Current Playwright Test Results Summary

✅ 182 Passing - ⚠️ 5 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 10/20/2023 06:42:47am UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 39c020c

Started: 10/20/2023 06:40:13am UTC

⚠️ Flakes

📄   apps/web/playwright/webhook.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
FORM_SUBMITTED on submitting team form, triggers team webhook
Retry 2Retry 1Initial Attempt
0.73% (2) 2 / 275 runs
failed over last 7 days
10.18% (28) 28 / 275 runs
flaked over last 7 days

📄   apps/web/playwright/integrations-stripe.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Stripe integration When event is paid and confirmed Payment should confirm pending payment booking
Retry 1Initial Attempt
1.80% (5) 5 / 278 runs
failed over last 7 days
1.80% (5) 5 / 278 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should be able to reschedule
Retry 2Retry 1Initial Attempt
7.37% (21) 21 / 285 runs
failed over last 7 days
90.53% (258) 258 / 285 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe according to system theme when no theme is configured through Embed API
Retry 1Initial Attempt
2.10% (6) 6 / 286 runs
failed over last 7 days
48.60% (139) 139 / 286 runs
flaked over last 7 days

📄   packages/app-store/routing-forms/playwright/tests/basic.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Routing Forms Seeded Routing Form Routing Link should validate fields
Retry 1Initial Attempt
0.35% (1) 1 / 283 run
failed over last 7 days
13.07% (37) 37 / 283 runs
flaked over last 7 days

View Detailed Build Results


@CarinaWolli CarinaWolli added 🐛 bug Something isn't working Medium priority Created by Linear-GitHub Sync labels Oct 20, 2023
Copy link
Contributor

@Udit-takkar Udit-takkar left a comment

Choose a reason for hiding this comment

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

@CarinaWolli nice catch.

we would also have add .tz(userTimezone) at few places in bookings/[status].tsx also

return new Date(booking.startTime).toDateString() === new Date().toDateString();
.

As you can see in the screenshot the second 20th october meeting doesn't show up in bookingsToday

Screenshot 2023-10-20 at 4 03 53 PM

@PeerRich PeerRich merged commit 051353e into main Oct 24, 2023
37 checks passed
@PeerRich PeerRich deleted the fix/date-of-booking branch October 24, 2023 10:05
@PeerRich
Copy link
Member

follow up #12053

hbjORbj pushed a commit to codemod-com/cal.com-demo that referenced this pull request Nov 28, 2023
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
hbjORbj pushed a commit to codemod-com/cal.com-demo that referenced this pull request Dec 21, 2023
Co-authored-by: CarinaWolli <wollencarina@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 Medium priority Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants