Set the Time Zone for an Instance

Engine Yard Cloud instances are set up in the "UTC" timezone by default. Based on your location, you may want to change this so timestamps in your logs match your timezone.

Note: If you have instances using the older AMI, they might default to "PST8PDT". The steps below work in any case.

Steps to change the time zone:

  1. Identify the desired time zone inside /usr/share/zoneinfo
    It may be common name like EST5EDT or identified by a popular city belonging to the time zone (e.g., Australia/Sydney).

  2. Add this cookbook to your custom recipes: https://github.com/engineyard/ey-cloud-recipes/tree/master/cookbooks/timezone and modify it with the correct timezone that you wish to use, as per the README instruction.
  3. Upload and apply your custom recipes.

See our Custom Chef Recipes article for further instructions on using custom recipes.

Comments

0 comments

Article is closed for comments.