Body: <p>I have customers all over the world.</p>
  
  <p>Is it possible to have a field where you enter the timezone?</p>
  
  <p>Let's say Eastern Standard Time, I enter 8:pm, I'm in Thailand. </p>
  
  <p>So the field would display something like this:</p>
  
  <p>"8:00 PM Monday, in Eastern Time is
  7:00 AM Tuesday, in Thailand"</p>
  
  <p>In my backend of view contacts, so I know when to call or not?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-24T02:47:21.163Z
Comments.Text: I think it would be fairly easy to write an extension to inject something like that into the contact summary form - do you have php skills?
Comments.UserDisplayName: user4278
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-24T02:51:47.503Z
Comments.Text: Not really, but a little bit..how do I plug PHP in custom fields, I can do it in Drupal, but not in CiviCRM, I'm using D7 with CiviCrm Module
Comments.UserDisplayName: Bruno  Vincent
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-24T02:55:57.287Z
Comments.Text: hmm yeah - I don't think you can do that. You'd need to use civix to fire up a small extension & then use a hook like https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_summary/ to add in a block
Comments.UserDisplayName: user4278
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-24T03:02:59.817Z
Comments.Text: Could I use Javascript? How can I assign custom ID or class to custom fields?
Comments.UserDisplayName: Bruno  Vincent
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-24T03:08:43.603Z
Comments.Text: You could - you normally would create an extension to do that too - it's not hard - start by grabbing Civix https://docs.civicrm.org/dev/en/latest/extensions/civix/ & go on chat.civicrm.org for help
Comments.UserDisplayName: user4278
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-24T03:36:46.317Z
Comments.Text: That chat link doesn't work for me, never has docs.civicrm.org/dev/en/latest/extensions/civix
Comments.UserDisplayName: Bruno  Vincent
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-24T05:28:39.137Z
Comments.Text: https://chat.civicrm.org/civicrm
Comments.UserDisplayName: user4278
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-24T05:45:43.827Z
Comments.Text: Thanks but it doesn't work, I registered wiht MatterMOst Chat, dead end, doesn't work
Comments.UserDisplayName: Bruno  Vincent
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-24T12:22:24.710Z
Comments.Text: Hi, can you contact me at mathieu@civicrm.org? I can look into it.
Comments.UserDisplayName: bgm
Tags: <timezone>
Title: How to create a dynamic timezone field for both display and input?
ThreadText: # How to create a dynamic timezone field for both display and input?
  
  (Asked by: username_0 on 2018-07-24)
  
  I have customers all over the world.
  
  Is it possible to have a field where you enter the timezone?
  
  Let's say Eastern Standard Time, I enter 8:pm, I'm in Thailand.
  
  So the field would display something like this:
  
  "8:00 PM Monday, in Eastern Time is
  7:00 AM Tuesday, in Thailand"
  
  In my backend of view contacts, so I know when to call or not?
  
  **Tags:** timezone
  
  > **Comments:**
  > **username_1**: I think it would be fairly easy to write an extension to inject something like that into the contact summary form - do you have php skills?  
  > **username_0**: Not really, but a little bit..how do I plug PHP in custom fields, I can do it in Drupal, but not in CiviCRM, I'm using D7 with CiviCrm Module  
  > **username_1**: hmm yeah - I don't think you can do that. You'd need to use civix to fire up a small extension & then use a hook like https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_summary/ to add in a block  
  > **username_0**: Could I use Javascript? How can I assign custom ID or class to custom fields?  
  > **username_1**: You could - you normally would create an extension to do that too - it's not hard - start by grabbing Civix https://docs.civicrm.org/dev/en/latest/extensions/civix/ & go on chat.civicrm.org for help  
  > **username_0**: That chat link doesn't work for me, never has docs.civicrm.org/dev/en/latest/extensions/civix  
  > **username_1**: https://chat.civicrm.org/civicrm  
  > **username_0**: Thanks but it doesn't work, I registered wiht MatterMOst Chat, dead end, doesn't work  
  > **username_2**: Hi, can you contact me at mathieu@civicrm.org? I can look into it.  
  
  ---
  
  ## 0 answers
  
  