How to Customize the Timezone Choices in CloudBolt

CloudBolt support customization of Windows VMware VMs' timezones during provisioning.  By default, CB presents users with a limited list of timezone choices, but that can be customized to include others.  To do this, ssh to the CB server as root, edit `/var/opt/cloudbolt/proserv/customer_settings.py` and paste this in there:

TZ_CHOICES = (

  (1, 'US/Samoa'),
  (2, 'US/Hawaii'),
  (2, 'US/Aleutian'),
  (3, 'US/Alaska'),
  (4, 'US/Pacific'),
  (10, 'US/Mountain'),
  (20, 'US/Central'),
  (35, 'US/Eastern'),
  (85, 'GMT'),
)

You can remove lines and add more lines with other options, just make sure the codes match appropriately.  Here is a reference of the available zones:

MSDN values for first column:
http://msdn.microsoft.com/en-us/library/ms912391(v=winembedded.11).aspx

VMware Names for second column:
https://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/timezone.html

 

Have more questions? Submit a request

2 Comments

  • 0
    Avatar
    Jason Tritton

    hi, do we need to amend this file after each upgrade please ?

  • 0
    Avatar
    Bernard

    Jason,

    No, the customer_settings.py file is preserved across upgrades and will remain in effect.

    Thanks,

    Bernard

Please sign in to leave a comment.