[soved]change format date displaying

More
13 years 11 months ago #22446 by micker
éèà ... is in month février is f?vrier ...
i code this with your php code directly inside category_item.php
Code:
<?php $lang = JRequest::getWord('lang', '' ); if(empty($lang)){ $langFactory= JFactory::getLanguage(); $tagLang = $langFactory->getTag(); } setlocale(LC_ALL, $lang ); $Date = $items[$i]->created; $Date = ( date('Y-n-d', strtotime($Date))); $event_date = strftime("%A %d %B %Y",strtotime($Date)); $event_date_array = explode(" ",$event_date); ?> <div id="date"><span class="event-day"><?php echo $event_date_array[0];?></span> <span class="event-month"><?php echo $event_date_array[1]; ?></span> <span class="event-year"><?php echo $event_date_array[2]; ?></span></div>
my document is converting to utf-8..

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago #22451 by Rehne
just a note:
need/should a php file to be converted to utf8?
as far as I know ... i don't think so!?

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago #22506 by micker
it strange if i put é directly in php it works !
where is the lang file of translate function ?
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago #22512 by micker
i found a solution
Code:
$event_date = utf8_encode(strftime("%A %d %B %Y",strtotime($Date)));
it works !

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save