Being British, I don't like the way that the date in comments in my journal is displayed the American way, with the month first. Is there any way of changing it from '10-24-2010' to either '24/10/2010' or '24th Oct 2010'?
Something that'll make you happy I hope: there's already a bug filed to make it possible to customize the date and time format in your journal - an use non-US formats - and I hope I'll be able to work on it soon. Unfortunately, styles bugs are sometimes connected so you have to put some on the backburner till others get fixed. And I'll stop rambling now. :)
Edit: and to answer your question, you need to add this to a theme or a user layer:
No, they won't. This bug only concerns formatting. If you want to be able to have dates written in a non-Gregorian calendar (and other types of numerals than the ones currently used), you'll have to suggest it.
Fair enough - I can imagine a few people would like to have alternative date formats, and/or dual date format displays. IIRC, there's a specific chunk of Perl or PHP coding that does it automatically.
Oh, thank you for this. When I get a chance I'll work on the code (or just add it - does this "fix" the date/time format to US or UK throughout, or am I missing something - since I don't see the format written out in the code?). :)
no subject
Date: 2010-10-25 10:18 am (UTC)Edit: and to answer your question, you need to add this to a theme or a user layer:
function Comment::time_display (string datefmt, string timefmt) : string {
return $this->time_display("med", $timefmt, false);
}
no subject
Date: 2010-10-25 10:30 am (UTC)Out of curiosity, will "non-US formats" also include thing like Jewish, Muslim, Japanese and Chinese calendars?
no subject
Date: 2010-10-25 10:40 am (UTC)no subject
Date: 2010-10-25 12:13 pm (UTC)Fair enough - I can imagine a few people would like to have alternative date formats, and/or dual date format displays. IIRC, there's a specific chunk of Perl or PHP coding that does it automatically.
no subject
Date: 2010-10-25 02:17 pm (UTC)By "it", I mean convert from Gregorian date formats to others.
Found it for Perl:
http://search.cpan.org/~morty/DateConvert-0.16/Convert.pm
...and for PHP:
http://php.net/manual/en/function.date.php
http://www.php.net/manual/en/calendar.constants.php
no subject
Date: 2010-10-28 03:31 am (UTC)no subject
Date: 2010-10-28 01:29 pm (UTC)The format is set to "med". Med is a pre-set format which corresponds to "Oct. 28th, 2010".
no subject
Date: 2010-10-29 02:55 am (UTC)ETA: works like a charm! Lovely to have an answer to the problem I never knew I had until I read the OP - thanks again.