Go Back   Android Forums > Android Phones > LG Optimus One (P500)

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old October 7th, 2011, 07:36 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Feb 2011
Posts: 12
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Arrow Time Zone files (zoneinfo/tzdata)

Hello Ladys n' Gentlemans, im using a P500 LG phone with the 2.3.3 OS of Android (gingerbread), and me and my country have a lot of problem with this smartphone (and whatever smartphone with Android) because the "daylight time rules" was changed the past month.

For this reason, our smartphone clocks always go 1hrs back the real time (my country is Chile, GMT-4 in the summer time).

I know what to do in linux (update the tzdata file from ftp://elsie.nci.nih.gov/pub/ and puting inside /usr/share/zoneinfo/), but in android the homework is something more complex.

In android, the "tzdata" reside inside the /system/usr/share/zoneinfo/ path. But inside that exist 3 files (in my P500):
  1. zoneinfo.dat
  2. zoneinfo.idx
  3. zoneinfo.version

The 3rd file (zoneinfo.version) have the version of the tzdata release (in my case "2010k"), but i dont know how to make the other 2 files. I understand that these 2 files was produced by the original tzdata (now the tzdata2011k.tar.gz from the ftp), wich contains all the Time Zones with its own "times rules".

Searching in our good friend google, i found that a Java code can convert these files and merged into one "zoneinfo.dat and zoneinfo.idx".

The Java code is called "JavaCompiler.java" and uses several others Java classes that i don understand how to make it work.

The JavaCompiler link is this: link

Now, i want to ask if some of you guys can helpme with this. Im not a Java developer, and less an Android developer...im only a HP50g developer :P

  • I want to update these deprecated file, and then make it public for any who want to upgrade it.
  • If someone of you have an updated version of the "zoneinfo.*" please upload to this thread (please, open with an text editor the zoneinfo.version...mine is 2010k, and the official tzdata is 2011k :P

Please, help me with that ;]

Best regards,
Asrhael/Chile
Attached Files
File Type: zip tzdata2011k.zip (205.7 KB, 19 views)
File Type: zip Tzdatadroid.zip (183.2 KB, 23 views)

asrhael is offline  
Reply With Quote
sponsored links
Old October 12th, 2011, 07:36 PM   #2 (permalink)
New Member
Thread Author (OP)
 
Join Date: Feb 2011
Posts: 12
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Lightbulb

A lot of time has passed, and now i want to tell you that i managed to compile these files myself.

These files works in any Android device...and the ZoneInfo files (3) are updated with the lastest TZDATA available (2011k).

So, if you have an Android device and live in Chile, Argentina..or some other country with "daylight date"...this is a good update for you.

For the update, you must to copy/replace these files (3) for that in your device (in the /system/usr/share/zoneinfo). After that, you need to reboot and then select any Time Zone in the menu.


Best Regards,
Asrhael
Chile
Attached Files
File Type: zip ZoneInfo.zip (145.8 KB, 74 views)
asrhael is offline  
Reply With Quote
Old October 31st, 2011, 04:25 AM   #3 (permalink)
New Member
 
Join Date: Oct 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Big thanks from Russia!
This fixed my timezone info on my LG P500 with unofficial CM7 (was 2010k, like yours...).
anonymous88 is offline  
Reply With Quote
Old November 14th, 2011, 04:52 PM   #4 (permalink)
New Member
 
Join Date: Nov 2011
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, Asrhael.
Thank you for the information.
How do you copy the files, because in my Android (Galaxy S), it tell me that is a read-only filesystem.
Of course that I have the device rooted.
I tried with command line and with a file browser.

Thanks.
Gustavo.

Quote:
Originally Posted by asrhael View Post
A lot of time has passed, and now i want to tell you that i managed to compile these files myself.

These files works in any Android device...and the ZoneInfo files (3) are updated with the lastest TZDATA available (2011k).

So, if you have an Android device and live in Chile, Argentina..or some other country with "daylight date"...this is a good update for you.

For the update, you must to copy/replace these files (3) for that in your device (in the /system/usr/share/zoneinfo). After that, you need to reboot and then select any Time Zone in the menu.


Best Regards,
Asrhael
Chile
ggaspar is offline  
Reply With Quote
Old November 14th, 2011, 05:15 PM   #5 (permalink)
New Member
Thread Author (OP)
 
Join Date: Feb 2011
Posts: 12
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ggaspar View Post
Hi, Asrhael.
Thank you for the information.
How do you copy the files, because in my Android (Galaxy S), it tell me that is a read-only filesystem.
Of course that I have the device rooted.
I tried with command line and with a file browser.

Thanks.
Gustavo.
Hi Gustavo, to copy these files you need a file manager that can handle root permissions. Im using Root Explorer and works flawlessly for cp/paste (you need to change from readonly to write in the menu).

Let me know if that work for you ;]

Best regards,
Asrhael
Attached Files
File Type: apk rootexplorer_2.16.apk (266.8 KB, 3 views)
asrhael is offline  
Reply With Quote
Old November 14th, 2011, 05:26 PM   #6 (permalink)
New Member
 
Join Date: Nov 2011
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you, Asrhael
I didn't see that the file manager has that option, and I used the old method:

mount -o remount,rw /dev/block/stl9 /system

Thank you, again.
Gustavo.


Quote:
Originally Posted by asrhael View Post
Hi Gustavo, to copy these files you need a file manager that can handle root permissions. Im using Root Explorer and works flawlessly for cp/paste (you need to change from readonly to write in the menu).

Let me know if that work for you ;]

Best regards,
Asrhael
ggaspar is offline  
Reply With Quote
Old March 11th, 2012, 04:20 PM   #7 (permalink)
New Member
 
Join Date: Mar 2012
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just compile the new version of tzdata for android, also I create a new github repo if any want do it by themselves.

Please feel free to send any comments.

https://github.com/downloads/mcornejo/TimeZoneFixer/zoneinfo.tar
murdix is offline  
Reply With Quote
Old September 5th, 2012, 05:09 PM   #8 (permalink)
New Member
 
Join Date: Sep 2012
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Time Zone Clicks that change auto as you travel

Looking for a dual clock widget like an option that is preinstalled in theHTC EVO. DUal Clock, left clock always shows "home" time. Left clock shows time at current location and changes automatically when you travel. Anyone know of any Widgets that do that? I can't find one. For Developers... what a great idea. I know I'd pay for such awidget.
mcbailey47 is offline  
Reply With Quote
Reply

LG Optimus One
Current Rating:
Rate this Phone:

The LG Optimus One is yet another solid mid range phone by LG. It sports a 3.2 ich capacitive touchscreen and Android 2.2. It's extremely affordable for the type of performance it dishes out. Even without the best of specs, it can go toe-t... Read More



Go Back   Android Forums > Android Phones > LG Optimus One (P500)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:20 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.