topcoder-platform / taas-app

TaaS App Front End
3 stars 24 forks source link

The interview scheduled time is displayed in UTC in calender invitation and in SCHEDULE INTERVIEW page #597

Open sdgun opened 2 years ago

sdgun commented 2 years ago

Steps Schedule an interview from a customer Confirm a time and set up interview from JC through the email link After JC submits the interview scheduling, the time displayed on the screen is changing to UTC and even in the calender invitation the time is sent in utc

https://user-images.githubusercontent.com/4592712/147195534-d39a286c-681f-45d5-9763-1a2f5538a200.mp4

maxceem commented 2 years ago

@sdgun this happens for the customer user, right?

Customer user sees time in UTC.

sdgun commented 2 years ago

@maxceem This happens for the JC who schedules the interview using the 'Select Interview Time' link from "Schedule your interview for ..." email which comes after customer submits the interview request

maxceem commented 2 years ago

@sdgun Got it. This email is sent by Google Calendar, so it must be using the timezone which is set inside the google calendar JC Google Account.

Could you please check it out?

image

image

sdgun commented 2 years ago

@maxceem This JC user has IST set as the primary TZ

image

maxceem commented 2 years ago

Hmm, @sdgun and what about the Customer's user calendar?

As this event is initially created inside Customer's Google calendar, maybe Google uses the Customer's Calendar timezone.

sdgun commented 2 years ago

@maxceem I checked the customer's calender too, it also has IST as the primary TZ. Did you notice in the attached video in this issue description, the interview time displayed before submitting is changing to UTC time after submitting? Not sure why the time is changing after submitting.

maxceem commented 2 years ago

Did you notice in the attached video in this issue description, the interview time displayed before submitting is changing to UTC time after submitting?

Ah, sorry, I've missed that. Hmm, strange...

maxceem commented 2 years ago

@sdgun the time which is shown on the thank you page is fixed:

image

Regarding the time which is shown inside the Google Calendar email. As per my testing it always uses timezone which is used inside the JC's Google Calendar settings for me.

For example, I've changed JC's Google Calendar Timezone to Marocco GMT+1, and I've got Google Calendar Email in Marocco GMT+1 time, though in all other places I use different timezone.

sdgun commented 2 years ago

This issue is fixed now.

https://user-images.githubusercontent.com/4592712/147536569-7fbe4e4b-e265-496a-87d4-372815474aef.mp4