Created
January 26, 2022 22:07
-
-
Save jeznag/4b69e454c980bc494cfe09f7619427a1 to your computer and use it in GitHub Desktop.
manipulate timezones in deluge script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contact_data = zoho.crm.getRecordById("Contacts", contact_id); | |
owner_id = contact_data.get("Owner").get("id"); | |
user_response = zoho.crm.getRecordById("users", owner_id); | |
user_data = user_response.get("users").get(0); | |
timezone = user_data.get("time_zone"); | |
appointment_time = contact_data.get("Modified_Time"); | |
appointment_time_in_user_timezone = appointment_time.toDateTime("yyyy-MM-dd'T'HH:mm:ss").toString("MMM dd hh:mm a", timezone); | |
return appointment_time_in_user_timezone; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment