TBLinux:Changing the Time Zone
Candy Chan (Talk | contribs) |
Candy Chan (Talk | contribs) |
||
(2 intermediate revisions by one user not shown) | |||
Line 8: | Line 8: | ||
|} | |} | ||
+ | <br> The above set the timezone for the bash shell only. To configure the time system-wide, manually change the file /etc/localtime to point to the right timezone.<br> | ||
− | + | '''$ rm /etc/localtime''' | |
− | $ | + | '''$ ln -s /usr/share/zoneinfo/<Your Timezone> /etc/localtime'''<br> |
− | + | Example: | |
− | + | '''$ ln -s /usr/share/zoneinfo/America/Fortaleza /etc/localtime''' | |
+ | You can check for the correct timezone name inside that directory "/usr/share/zoneinfo/../..". | ||
− | '''You need to restart Toolpack for it to apply the changes.''' E.g. Timestamps in toolpack logs. | + | <br> '''You need to restart Toolpack for it to apply the changes.''' E.g. Timestamps in toolpack logs. |
Latest revision as of 03:44, 15 December 2011
The time zone of a Tmedia unit, such as the TMG800 or TMG3200, is configured on the Linux host using the tzselect
command.
The following is provided as a sample of how to configure a time zone:
NOTE: User-typed parameters are shown in red.
|
The above set the timezone for the bash shell only. To configure the time system-wide, manually change the file /etc/localtime to point to the right timezone.
$ rm /etc/localtime
$ ln -s /usr/share/zoneinfo/<Your Timezone> /etc/localtime
Example:
$ ln -s /usr/share/zoneinfo/America/Fortaleza /etc/localtime
You can check for the correct timezone name inside that directory "/usr/share/zoneinfo/../..".
You need to restart Toolpack for it to apply the changes. E.g. Timestamps in toolpack logs.