01-22-2012, 04:31 PM | #1 |
Member
Posts: 21
Karma: 10
Join Date: Jan 2012
Device: Kindle 3 & Mac OSX
|
Date format
I am using the excellent plugin from pchrist7 to show the read status in a custom column. However, being English we like to see the date displayed as dd/mm/yy rather than the american mm/dd/yy. Is there anyway to change this?
Andy |
01-22-2012, 04:33 PM | #2 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Preferences->Tweaks
|
Advert | |
|
01-23-2012, 04:17 AM | #3 | |
Grand Sorcerer
Posts: 11,739
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Regardless of "normally", as the date is being displayed in a custom column, and assuming that it is a date column and not a text column, change the display format for that column. Preferences -> Add your own columns. Click on the date column line, then click the I icon to edit the column definition. Change the format to what you want. You can see a complete list of format codes in Preferences -> Tweaks -> "Control how dates are displayed". |
|
01-23-2012, 06:40 AM | #4 |
Member
Posts: 21
Karma: 10
Join Date: Jan 2012
Device: Kindle 3 & Mac OSX
|
It's a custom text column
Hi Charley!
Where do I set the locale? I'm sure I have looked at every available option but did not see it. The column type is a column built from other columns. The Sort/search column flag is set to text. When working, the Read Status column contains the text "Not Read", "Reading: x% or the date reading was completed. This is currently displayed as mm/dd/yy. Following the terse suggestion to look at Preferences->Tweaks, I had a look at the 'Control how dates are displayed' option. As the column contains the text I didn't think this would work but thought it worth a try. The lookup name for the custom column is read_status. I played around with various combinations including gui_read_status_display_format in the edit tweak screen but nothing seemed to work. Anymore suggestions anyone? |
01-23-2012, 06:57 AM | #5 | ||
Grand Sorcerer
Posts: 11,739
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
chaley, not charley.
Quote:
Quote:
In any event, pchrist7's template function returns a text value, not a date. Even more interesting, the text sometimes contains a date and sometimes does not. Because of this, the formatting must done inside the function. If you want to change the format, you will need to change the function. |
||
Advert | |
|
01-23-2012, 02:59 PM | #6 |
Member
Posts: 21
Karma: 10
Join Date: Jan 2012
Device: Kindle 3 & Mac OSX
|
Apologies!
Hello chaley! (I do hope I got that right this time )
I am using a Mac with OSX 10.6.8 and the local is UK. However, I don't think this is the cause of the problem. You are correct in that I am using pchrist7's custom template function and looking at it I also agree that the formatting needs to be done inside of the function. I think I might have to do a bit of research here as I have never played with python before. Thank you for your wisdom! |
Tags |
date format |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Date Format | mrbillb | Calibre | 3 | 09-07-2010 08:44 PM |
UK date format, is it possible? | Mnementh | Feedback | 42 | 08-08-2009 03:06 AM |
change the date format | Valwit | Sony Reader | 0 | 04-14-2009 08:30 AM |
PRS-500 Date format | AprilHare | Sony Reader Dev Corner | 1 | 11-14-2008 07:53 AM |
Question: How to change the date format? | -Thomas- | Lounge | 2 | 04-05-2008 07:14 PM |