TBLinux:Changing the Time Zone: Difference between revisions
No edit summary |
No edit summary |
||
| Line 46: | Line 46: | ||
Eastern Time - Quebec - most locations<br> | Eastern Time - Quebec - most locations<br> | ||
<br> | <br> | ||
Therefore TZ= ‘America/Montreal’ will be used. | Therefore TZ= ‘America/Montreal’ will be used.<br> | ||
Local time is now: Wed Aug 19 08:49:01 EDT 2009. | Local time is now: Wed Aug 19 08:49:01 EDT 2009.<br> | ||
Universal time is now: Wed Aug 19 08:49:01 UDT 2009. | Universal time is now: Wed Aug 19 08:49:01 UDT 2009.<br> | ||
Is the above information OK? | Is the above information OK?<br> | ||
1) | 1) Yes<br> | ||
2) | 2) No<br> | ||
#? | #? 1<br> | ||
<br> | <br> | ||
You can make this change permanent for yourself by appending the line<br> | You can make this change permanent for yourself by appending the line<br> | ||
TZ= ‘America/Montreal’; export TZ<br> | |||
to the file ‘.profile’ in your home directory; then log out and log in again.<br> | to the file ‘.profile’ in your home directory; then log out and log in again.<br> | ||
<br> | <br> | ||
Here is the TZ value again, this time on standard output so that you<br> | Here is the TZ value again, this time on standard output so that you<br> | ||
can use the /usr/bin/tzselect command in the shell script<br> | can use the /usr/bin/tzselect command in the shell script<br> | ||
America/ | America/Montreal<br> | ||
[root@TB005373 ]#<br> | [root@TB005373 ]#<br> | ||
</code> | </code> | ||
|} | |} | ||
Revision as of 11:58, 6 July 2010
The time zone of the 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:
|
|