Timezone

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Timezone: wiki)
 
(11 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
== Timezone ==
 
== Timezone ==
  
To change the timezone on your Freerunner you have to  
+
At this time, there is no preferences application to set the timezone of your Openmoko device.
 +
 
 +
For now, either open the terminal application or log in to your Openmoko over the USB networking
 +
connection and change the timezone via commandline commands.
 +
 
 +
To change the timezone on your FreeRunner you have to  
  
 
  opkg install tzdata
 
  opkg install tzdata
Line 18: Line 23:
 
  tzdata-pacific
 
  tzdata-pacific
 
  tzdata-posix   
 
  tzdata-posix   
  tzdata-right  
+
  tzdata-right
  
after that you have to change the TZ="UTC" in your /etc/profile
+
after that, you should create a symlink named /etc/localtime which points to the appropriate file in /usr/share/zoneinfo.  For example, if you're on the East Coast of the U.S., the following command will link the correct zoneinfo file to your /etc/localtime, giving you the correct time:
to the timezone you want
+
  
for Germany for example is it TZ="Europe/Berlin"
+
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
for France TZ="Europe/Paris"
+
and so on
+
  
after restart of your x-server with  
+
Afterwards, edit <tt>/etc/timezone</tt> and change to e.g. "Europe/Berlin".
 +
<br>for Germany for example it is TZ="Europe/Berlin"
 +
<br>for France TZ="Europe/Paris"
 +
<br>and so on
 +
 
 +
Alternatively, you can take the more invasive approach and change the TZ="UTC" in your /etc/profile
 +
to the timezone you want.
 +
 
 +
Once the timezone is set, restart of your x-server with  
  
 
  /etc/init.d/xserver-nodm restart
 
  /etc/init.d/xserver-nodm restart
  
you have the right timezone
+
you should now have the right timezone.
  
A second, less invasive method (unless you <i>like</i> modifying /etc/profile) is to symlink the appropriate timezone config file to /etc/localtime.  For example, if you're on the East Coast of the U.S., the following command will link the correct zoneinfo file to your /etc/localtime, giving you the correct time:
+
In the future, expect the time zone to be set automatically by the telephone stack once connected to the network.
  
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
+
See also [[Date]] for setting the date and time.
  
A x-server restart is still necessary for the window manager to pick up the new timezone.
+
===Debian===
 +
Just use <code>dpkg-reconfigure tzdata</code>. Also consider installing the <code>ntp</code> package.
  
[[Category:Documentation]]
+
[[Category:Middleware settings]]
[[Category:Guides]]
+

Latest revision as of 16:26, 11 December 2009

[edit] Timezone

At this time, there is no preferences application to set the timezone of your Openmoko device.

For now, either open the terminal application or log in to your Openmoko over the USB networking connection and change the timezone via commandline commands.

To change the timezone on your FreeRunner you have to

opkg install tzdata

and then install one of these

tzdata-africa
tzdata-americas
tzdata-antarctica
tzdata-arctic
tzdata-asia 
tzdata-atlantic
tzdata-australia
tzdata-europe
tzdata-misc
tzdata-pacific
tzdata-posix  
tzdata-right

after that, you should create a symlink named /etc/localtime which points to the appropriate file in /usr/share/zoneinfo. For example, if you're on the East Coast of the U.S., the following command will link the correct zoneinfo file to your /etc/localtime, giving you the correct time:

ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime

Afterwards, edit /etc/timezone and change to e.g. "Europe/Berlin".
for Germany for example it is TZ="Europe/Berlin"
for France TZ="Europe/Paris"
and so on

Alternatively, you can take the more invasive approach and change the TZ="UTC" in your /etc/profile to the timezone you want.

Once the timezone is set, restart of your x-server with

/etc/init.d/xserver-nodm restart

you should now have the right timezone.

In the future, expect the time zone to be set automatically by the telephone stack once connected to the network.

See also Date for setting the date and time.

[edit] Debian

Just use dpkg-reconfigure tzdata. Also consider installing the ntp package.

Personal tools

Timezone

To change the timezone on your Freerunner you have to

opkg install tzdata

and then install one of these

tzdata-africa
tzdata-americas
tzdata-antarctica
tzdata-arctic
tzdata-asia 
tzdata-atlantic
tzdata-australia
tzdata-europe
tzdata-misc
tzdata-pacific
tzdata-posix  
tzdata-right   

after that you have to change the TZ="UTC" in your /etc/profile to the timezone you want

for Germany for example is it TZ="Europe/Berlin" for France TZ="Europe/Paris" and so on

after restart of your x-server with

/etc/init.d/xserver-nodm restart

you have the right timezone

A second, less invasive method (unless you like modifying /etc/profile) is to symlink the appropriate timezone config file to /etc/localtime. For example, if you're on the East Coast of the U.S., the following command will link the correct zoneinfo file to your /etc/localtime, giving you the correct time:

ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime

A x-server restart is still necessary for the window manager to pick up the new timezone.