More Timezones for Molux/PanelCard

Our product is going to be used worldwide, so it is required that also other timezone settings than Europe/Berlin are supported.

What do we have to modify in the root image (and/or kernel) (linux-2.6.22-taskit4) in order to have the possibility to select different timezones, and is it sufficient to set the TZ environment variable in order to select another timezone?

Re: More Timezones for Molux/PanelCard

You can copy the zoneinfo database from your Linux distribution.
Note that you might not need all timezone entries, so it would save a lot space to copy only needed information.
The timezone database is located at:
"/usr/share/zoneinfo/"

After you have copied the database onto flash you need to set a link pointing from "/usr/share/zoneinfo/" to your database at startup.

Timezones can be change either by setting the TZ variable (e.g.

export TZ=Europe/Berlin

) or by creating a link from /etc/localtime to the appropriate timezone (e.g.

ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime

).

More information can be found at the official TZ homepage:
http://www.twinsun.com/tz/tz-link.htm

Re: More Timezones for Molux/PanelCard

It works.
Thanks a lot!

Syndicate content