Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The SmartOS Global Zone defaults to the UTC timezone. I'd like to schedule some cron jobs, and I'd like them to automatically follow daylight saving time changes, without requiring me to manually change the UTC offset every time the daylight saving change occurs.

How can I change the timezone for my SmartOS Global Zone?

share|improve this question
up vote 3 down vote accepted

There are two methods to do this. The first is to write a custom SMF manifest and place it in /opt/custom/smf - any manifests in this directory are imported automatically at boot.

The other method is to use pkgin to install the smtools package. This provides a script called sm-set-timezone.

See this blog entry by Jonathan Perkin, who works for Joyent for reference.

share|improve this answer
Hmm, on the Global Zone, sm-set-timezone doesn't seem to persist between reboots. I'll try the SMF route. Thanks. – smokris Dec 31 '12 at 23:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.