Skip to main content
Murali Matta (Meritage Homes) ha fatto una domanda in #Apex
Hi,

I have custom field

Type: Time

Name:Start Time    

which stores and displays the time in my local time zone(PST). How can I convert time to GMT format and display to the user?

Thanks,

Murali
6 risposte
  1. 3 dic 2018, 19:26
    Hi Ajay/ Raj,

    I got the answer. 

    By using offset value we convert the time to GMT value.

    Example: If a user in PST/PDT, and day light(PDT) offset value is -252000, Standard Time(PST) Offset value is -282000.

    We can determine whether user is in PST/PDT and convert accordingly.

    Thanks,

    Murali
0/9000