Timezone problems
Holger Freyther
zecke at openmoko.org
Sat Jul 26 22:43:33 CEST 2008
On Saturday 26 July 2008 20:38:14 Christopher White wrote:
> I'm having trouble setting the timezone on my phone running ASU. I set
> the time/date via the command line (date -s) and that works fine.
>
> Next, I link /etc/localtime:
>
> root at om-gta02:~# ln -sf /usr/share/zoneinfo/America/New_York
> /etc/localtime
>
> But date still show UTC time:
>
> root at om-gta02:~# date
> Sat Jul 26 18:29:37 UTC 2008
>
> As does the phone toolbar and the clock application. Trying "Set Time"
> from Clock even shows "New York" as the current timezone.
Not known, IIRC it is part of the tests QA is doing and I just tested it as
well. The systemtime application of Qtopia (and the server providing the
implementation) will do the following.
It will copy the Timezone file to /etc/localtime
It will write /etc/timezone
It will ask atd (if it is running) to write the time
I tested it with setting the Timezone to New York and then to Tokyo. What you
can test is that your link is valid, and if glibc does like the link, e.g.
start copying things over as well. But then again you can ask Qtopia using
qcop to write the timezone and new time for you....
root at om-gta02:~# md5sum /etc/localtime /usr/share/zoneinfo/America/New_York
e4ca381035a34b7a852184cc0dd89baa /etc/localtime
e4ca381035a34b7a852184cc0dd89baa /usr/share/zoneinfo/America/New_York
root at om-gta02:~# cat /etc/timezone
America/New_Yorkroot at om-gta02:~# date
Sat Jul 26 10:31:30 EDT 2008
root at om-gta02:~# /opt/Qtopia/bin/systemtime
root at om-gta02:~# md5sum /etc/localtime /usr/share/zoneinfo/Asia/Tokyo
f17769e8eb35e7a08cfedfe9b2f6b5ef /etc/localtime
f17769e8eb35e7a08cfedfe9b2f6b5ef /usr/share/zoneinfo/Asia/Tokyo
root at om-gta02:~# cat /etc/timezone
Asia/Tokyoroot at om-gta02:~# date
Sat Jul 26 23:32:16 JST 2008
z.
More information about the community
mailing list