APIs & Integrations

Sanjay_Zuper
Miembro

Handling Timezone in CRM card App listing

resolver

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 Me gusta
1 Soluciones aceptada
nickdeckerdevs1
Solución
Colaborador líder | Partner nivel Gold
Colaborador líder | Partner nivel Gold

Handling Timezone in CRM card App listing

resolver

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!

Ver la solución en mensaje original publicado

0 Me gusta
3 Respuestas 3
Sanjay_Zuper
Miembro

Handling Timezone in CRM card App listing

resolver

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 Me gusta
nickdeckerdevs1
Colaborador líder | Partner nivel Gold
Colaborador líder | Partner nivel Gold

Handling Timezone in CRM card App listing

resolver

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 Me gusta
nickdeckerdevs1
Solución
Colaborador líder | Partner nivel Gold
Colaborador líder | Partner nivel Gold

Handling Timezone in CRM card App listing

resolver

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 Me gusta