problem with date output

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
sirrs.de
Regular
Posts: 5
Joined: Sun Nov 08, 2009 10:58 am
Location: Ostholstein
Contact:

problem with date output

Post by sirrs.de »

Hello!

I want s9y to display german days and months.
I selected "german" in the general properties, left "utf-8" unchanged, because changing to "national" corrupts the special characters.
So I end up with "october" (instead of "oKtober"), "friday" instead of "Freitag"

I'm completely clueless what to change to get this right...
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: problem with date output

Post by garvinhicking »

Hi!

Your server needs to support the german locales, i.e. "de_DE.UTF-8". You might need to contact your server provider to ask them to install the german locales so that those names can be used.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
sirrs.de
Regular
Posts: 5
Joined: Sun Nov 08, 2009 10:58 am
Location: Ostholstein
Contact:

Re: problem with date output

Post by sirrs.de »

Thank you very much.

hosted locales are:

en_US.UTF-8
en_US.utf-8
en_US.UTF8
en_US.utf8

Answers some questions ;)

Rock on!
Image
sirrs.de
Regular
Posts: 5
Joined: Sun Nov 08, 2009 10:58 am
Location: Ostholstein
Contact:

Re: problem with date output

Post by sirrs.de »

So, locales not installed yet - next problem:

I am searching for the right formatting of day/month/year in the appropiate fields (serendipity_date; serendipity_recententries), the right file to change respectively.
My guess is, it's somewhere hidden inside the "index.php" and I have some clues, but no evidence.
The date in the heading line is now ok: "name of day/day/month/year".
But the recent entries in the sidebar remain "name o. d./ month/ day / year".

#2 I want to reduce the output to xx.yy.zz ( instead of n.o.d., xx.yy.zzzz), but how? *g*

I know something about HTML & stuff - but php is a blank spot on my mental map...

Thanks in advance,
Lasse Wittfoth
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: problem with date output

Post by garvinhicking »

Hi!

The date format of the sidebar plugin is configured in the plugin itself. You can check the available modifieres on www.php.net/date.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply