sharpiefan (
sharpiefan) wrote in
style_system2010-10-24 06:52 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
Entry tags:
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'?
no subject
*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.
(no subject)
no subject
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.
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
Gets worse...
Re: Gets worse...
Re: Gets worse...
Re: Gets worse...
Re: Gets worse...
Re: Gets worse...
no subject
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)
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)