Now: Erstellt: Nov 2 · Admin: Lisa · Melden
I want: Erstellt: 2. Nov · Admin: Lisa · Melden
help with europien dates on the newsfeeds
Feb 23 <<< thats the us date notation on newsfeeds
can i change that to europe >>>> 23 Feb
check allways on a terminal on the server locale -a
then you will get a list of locale installed on the system
i have
CC.UTF-8en_AGen_AG.utf8en_AU.utf8en_BW.utf8en_CA.utf8en_DK.utf8en_GB.utf8en_HK.utf8en_IE.utf8en_INen_IN.utf8en_NGen_NG.utf8en_NZ.utf8en_PH.utf8en_SG.utf8en_US.utf8en_ZA.utf8en_ZMen_ZM.utf8en_ZW.utf8nl_NL.utf8
for me i need nl_NL but there is no nl_NL only nl_NL.utf8
there you have my problem.
so on the top of
/ow_utilities/date_time.php
under
<?php put
setlocale (LC_ALL, 'nl_NL.utf8');
and change the if onlydate function to the topic of Marcel
if ( $onlyDate )
{
return ( date('y', $timeStamp) === date('y', time()) ) ?
strftime("%a, %d.%m.%Y", $timeStamp) :
strftime("%a, %d.%m.%Y", $timeStamp);
}
return ( date('y', $timeStamp) === date('y', time()) ) ?
( $militaryTime ? strftime("%a, %d.%m.%Y, %H:%M", $timeStamp) : strftime("%a, %d.%m.%Y, %I:%M%p", $timeStamp) ) :
( $militaryTime ? strftime("%a, %d.%m.%Y, %H:%M", $timeStamp) : strftime("%a, %d.%m.%Y, %I:%M%p", $timeStamp) );
save and be happy