Handling Timezone in CRM card App listing

Sanjay_Zuper
メンバー

Hi, Zuper has an integration with HubSpot where we have a widget within HubSpot that allows creation of jobs in Zuper. This widget is present as a CRM card in the deals and tickets pages in HubSpot. 

 

My question is related to timezone handling in HubSpot. Is there a way to have the CRM card listing show the dates and times in the timezone based on the user preference for each user rather than the account timezone on HubSpot? Currently the scheduled start time and end time fields populate based on the account timezone (Pacific Time). 

Sanjay_Zuper_1-1744719986486.png

 

 

 

0 いいね!
1件の承認済みベストアンサー
nickdeckerdevs1
解決策
トップ投稿者 | Gold Partner
トップ投稿者 | Gold Partner

I use getTimezoneOffset() or other date functions in javascript to convert it. This is super helpful

Check out the Using Options section for a bit more detail on timezones.

Let me know if you get stuck somewhere and provide some code on where you are having and issue and I'll see what I can do to help out!

I'd recommend doing a lot of console logging while working through this!

元の投稿で解決策を見る

0 いいね!
3件の返信 3
Sanjay_Zuper
メンバー

Hi @nickdeckerdevs1 Thank you for your response. The field is configured as a date time field and we're currently sending the timestamp we have in our app to HubSpot in UTC format and HubSpot does the conversion based on the account timezone of the user viewing the CRM card of our app. I wanted to understand if anything can be done on HubSpot's side to have them do the conversion based on the timezone of the user instead of the HubSpot account so that different users belonging to the same account may see the time accurately in their timezone. 

 

 

 

This actually works in email scheduling, SMS etc. but not in the CRM card data. 

Sanjay_Zuper_0-1744967394583.png

 

0 いいね!
nickdeckerdevs1
トップ投稿者 | Gold Partner
トップ投稿者 | Gold Partner

Can you give me the example of what you are trying to see verse what you are seeing, I'm having a hard time visualizing this.

This is just for how the user sees the dates, not for inputting, correct?

0 いいね!
nickdeckerdevs1
解決策
トップ投稿者 | Gold Partner
トップ投稿者 | Gold Partner

I use getTimezoneOffset() or other date functions in javascript to convert it. This is super helpful

Check out the Using Options section for a bit more detail on timezones.

Let me know if you get stuck somewhere and provide some code on where you are having and issue and I'll see what I can do to help out!

I'd recommend doing a lot of console logging while working through this!

0 いいね!