Skip to content

Instantly share code, notes, and snippets.

@jeznag
Created January 26, 2022 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeznag/4b69e454c980bc494cfe09f7619427a1 to your computer and use it in GitHub Desktop.
Save jeznag/4b69e454c980bc494cfe09f7619427a1 to your computer and use it in GitHub Desktop.
manipulate timezones in deluge script
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