03-17-2013, 02:09 AM | #1 |
Enthusiast
Posts: 28
Karma: 55702
Join Date: Sep 2012
Device: Kindle Touch
|
Kindle Touch doesn't respect LC_TIME?
My Kindle Touch is 5.3.2.1. I want to set its clock format from 12- to 24-hour format.
From the wiki here I know to change LANG=en_GB.utf8 may do this work. But AFAIK, it is LC_TIME that controls what format date should use. So I change /var/local/system/locale like this: Code:
LANG=en_US.utf8 LC_TIME=en_GB.utf8 LC_ALL= Code:
# locale |
03-17-2013, 05:37 AM | #2 |
Guru
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
You could go to the settings menu and change the language from en-US to en-GB
|
03-17-2013, 12:38 PM | #3 |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Time formatting in title bar is handled completely by JavaScript code at /usr/share/webkit-.0/pillow/javascripts/default_status_bar.js. It relies on (non-standard?) DateTimeFormat object accessible from JavaScript and provided by Kindle's WebKitGTK library. Object constructor has following signature:
Code:
/** * Creates an instance of DateTimeFormat object. * * @constructor * * @param {string} format Datetime format (at least, "short-time" is recognized). * @param {string=} timeZone Optional time zone for converting current time (at least, "GMT" is recognized). */ function DateTimeFormat(format, timeZone) { /* ... */ } I believe, DateTimeFormat object forwards formatting requests to ICU library object created by DateFormat::createDateTimeInstance function. It's possible to change time format independently of current locale with runtime replacing of DateTimeFormat object by executing following command: Code:
lipc-set-prop com.lab126.pillow interrogatePillow '{"pillowId": "default_status_bar", "function": "DateTimeFormatter = {\"format\": function(date){return date.getHours()+\":\"+date.getMinutes();}}; StatusBar.clock.update();"}' |
03-18-2013, 02:02 AM | #4 |
Enthusiast
Posts: 28
Karma: 55702
Join Date: Sep 2012
Device: Kindle Touch
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Troubleshooting Kindle Touch: Wi-fi doesn't connect | myral | Amazon Kindle | 6 | 01-03-2013 11:03 AM |
New KF in respect to Amazon Video or Audible | rkw | News | 2 | 09-10-2012 06:17 PM |
Kindle Collections for Calibre doesn't work with the Kindle Touch! | apastuszak | Amazon Kindle | 8 | 04-18-2012 03:23 PM |
No Respect | Spyderman | Introduce Yourself | 4 | 04-15-2011 12:46 PM |
Does iBooks and ADE respect opf:file-as ? | NicolasR | ePub | 1 | 02-08-2011 04:58 PM |