sharpiefan: Line of Age of Sail Marines on parade (Default)
sharpiefan ([personal profile] sharpiefan) wrote in [community profile] style_system2010-10-24 06:52 pm

Time/date display for comments

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'?
thedeadcat: Dead Cat Harvest Cat (Default)

[personal profile] thedeadcat 2010-10-24 06:19 pm (UTC)(link)
Uhm. Yes. Mine was actually British until I switched it back. (Only because first thing in the morning I am easily baffled, as my brain runs on caffeine and the tank is empty at that point.)

*goes poking* I swear I remember where this is...

It appears that I don't remember where the function is. Dammit! I hope someone replies to this who's smarter than I am on a Sunday.
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)

[personal profile] matgb 2010-10-24 08:44 pm (UTC)(link)
Oh, wait. In comments.

I have checked, mine displays wrong as well, I'd never noticed. This must be fixed.

I cannot find it as an option anywhere, which suggests it doesn't exist. I will investigate further.
marahmarie: (M In M Forever) (Default)

Gets worse...

[personal profile] marahmarie 2010-10-24 10:20 pm (UTC)(link)
The date-time is in US format on view-recent (for me, anyway, as a US user), but not on reply mode pages or on individual comments themselves; those flip to UK format.
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)

[personal profile] ninetydegrees 2010-10-25 10:18 am (UTC)(link)
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:

function Comment::time_display (string datefmt, string timefmt) : string {
return $this->time_display("med", $timefmt, false);
}
Edited 2010-10-25 10:25 (UTC)