Page 1 of 1

date formatting

Posted: Tue 5. Jul 2011, 13:30
by taleia
Hi,

Currently the Last updated date is formatted as mm/dd/yyyy, while in my country the standard is dd/mm/yyyy.

Would it be possible to have an option to choose the date formatting, or have it picked up from my windows settings or something?

Thanks so much for all your work.

Taleia

Re: date formatting

Posted: Tue 5. Jul 2011, 15:25
by Raimond
Hi,

dd.mm.yyyy is also the standard in Germany.
(That's the reason why I'm using / to divide it , for me that means "American date format")

I took a short look in the code, there are two ways to solve it:
1)
I could change the format to display like: (Easiest ways)
12. Jan 1987
25. Jun 1999
27. Sep 1985
2)
I could change %updated to %updated_day and %updated_month and %updated_year
Then you'd be able to modify it in your layout.html

opinion?

Rai

Re: date formatting

Posted: Tue 5. Jul 2011, 16:13
by taleia
thanks for the quick reply :-)

The first option would work for me, assuming Calibre has no problem importing that format into the metadata. I can't think of any reason I'd need it more customisable than that.

Re: date formatting

Posted: Wed 6. Jul 2011, 05:49
by joecheung1
If you change the date format then I would prefer you use the second option.

I'm used to the mm/dd/yyyy and if someone is not then they could change it themselves in the layout.html. Instead of forcing everyone to a standard format.

Joe