Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

News date - wrong launguage coding

Hello members,
I need some help with my site. I have a problem with Language coding on my site. I have set Slovak -UTF8 coding, but now i have this error letters in stead of the original one. There is an image of that. Is there a way to change it from 22/jul/2013 to 22/7/2013 format? Thank you very much for help.


s11.postimg.org/m90p81vtf/phpfusionhelp.png
admin >>> settings >>> time and date







I have everything in %d/%m/%Y number format. Server,mine and hosts date is set to 22/07/2013 format. I have wrong date only in news.
It might be this in the theme.php


CodeDownload  
   echo "<li class='date'>".showdate("%d %b %Y", $info['news_date'])."</li>\n";



same for articles



I foung this in there
CodeDownload  
echo "<li class='date'>".showdate("%d %b %Y", $info['news_date'])."</li>\n";



What to do with it next.
Try this to fetch it from settings

CodeDownload  
   echo "<li class='date'>".showdate("".$settings['newsdate']."", $info['news_date'])."</li>\n";





Got it now, rewritted

echo "<li class='date'>".showdate("%d %b %Y", $info['news_date'])."</li>\n";
to
echo "<li class='date'>".showdate("%d %m %Y", $info['news_date'])."</li>\n";
Thread Information
Author
Replies
7 posts
Views
3,117 times
Last Post
Last updated on 7 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: - Tony -, kopko