Need to convert server UTC Time zone to client time zone

We need to get ticket created date and time and update date it in custom field. But we are getting time as UTC and we need to display it in local time

@Sateshsoundar_Namasi Have you tried creating a serverless application that would be triggered with the onTicketCreate event?


You could then make an api request to get the ticket’s created date and time. Transpose that date and time using the Date() object and then create a post request using the Freshdesk SDK Request API here updating your custom field with your new date values.

Just a thought. Hope it helps.

3 Likes

@Sateshsoundar_Namasi

In addition to what @Zach said,
Here are few references on converting time zones in javascript

Take Daylight saving into account

Stay Safe :slight_smile:

3 Likes