![]() |
"date" reports correct time zone and time; UI reports a time several hours off
I pushed a file from /usr/share/zoneinfo to my kindle's /var/local/system/tz file. It shows the time zone I want when I run "date" on it, but the Kindle's time (in the UI) is several hours off. What's wrong?
For the record, this Kindle is not registered to Amazon. |
Quote:
Both set to the same (GMT) time. ?? Is the "several hours off" happen to be your offset from TZ-0? |
Quote:
Code:
$ scp America/Los_Angeles kindle:/var/local/system/tzCode:
# ntpdate pool.ntp.orgCode:
# date |
And after you do a re-start? (Which should not be required)
And my earlier question - how many hours off is that time displayed in the UI? |
Yeah, it gets tricky sometimes.
Cf. /usr/sbin/setdate && /usr/sbin/settz && /usr/sbin/updatetime The K5 ;st shortcut calls setdate with the wanted time in the %s format. (use date -D "inputfmt" +outputfmt "time" to convert, or use the output of a full fledged date from a proper Linux system). |
|
Quote:
Quote:
|
/usr/sbin/updatetime is Amazon's wrapper around ntp, IIRC.
|
Quote:
Change the time server(s) or time server network(s) as desired per the directions. |
Quote:
Being a sysadmin, you can probably fix that better than we could. ;) |
... this method has always worked for me:
https://wiki.mobileread.com/wiki/Kind..._the_time_zone |
Quote:
|
Quote:
I just tried it again on a Kindle Touch, and it worked again as expected (but only after a reboot, not immediately via SSH - not even if restarting the framework). EDIT: Yep... you're right. Even after setting up everything correctly, the K4 will simply stick to displaying UTC in the user interface. I guess "inability to show the correct timezone" is just one more thing to complain about to Amazon CS. I'm personally not terribly surprised. |
Ah, phooey.
Lab126 forgot the -u option use in their testing and/or scripting. And that crew **gets paid** to turn out this stuff! @ixtab: Any chance that Java is somewhere maintaining its own idea of the date/time/tz without reference to the system/hardware clocks? I.E: A module that should only be used on systems that do not have hardware date/time? Hmm... I guess I could re-write the ntpdate button to store local time in the hardware of the K4. But that seems kind of like a kludge to me. |
Quote:
It doesn't really make sense, but it's seemingly what they did. Maybe because they didn't even ship the files required to support time zones in the first place, so they assumed the only "existing" TZ would be UTC anyway? "Who needs more than one timezone anyway? Or, for that matter, who needs the correct date and time on an e-book reader?" :smack: |
| All times are GMT -4. The time now is 07:06 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.