date formatting

You want a new feature? That's the place to talk about it.
Post Reply
taleia
Posts: 2
Joined: Sun 16. Jan 2011, 01:44

date formatting

Post 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
User avatar
Raimond
Administrator
Posts: 293
Joined: Sat 20. Nov 2010, 13:31
Contact:

Re: date formatting

Post 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
taleia
Posts: 2
Joined: Sun 16. Jan 2011, 01:44

Re: date formatting

Post 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.
joecheung1
Posts: 11
Joined: Tue 31. May 2011, 21:24

Re: date formatting

Post 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
Post Reply