jschendel Posted September 15, 2011 Share Posted September 15, 2011 Hello - novice to php here... I have a Joomla template which displays the date and time on my site. The date and time info evidently come from the server which is not in my time zone (I'm in CST, but the screen displays MST), so the hour is off by one. The line where the date and time are in the template was: <div id="date"><?php echo JHTML::Date( 'now', '%A, %d.%m.%Y' ); ?></div> and I changed it to: <div id="date"><?php echo JHTML::Date( 'now', '%A - %B %d, %Y %I:%M' ); ?></div> What would be the best way for me to adjust the hour to show CST and not MST? Quote Link to comment https://forums.phpfreaks.com/topic/247225-datetime-in-joomla-template/ Share on other sites More sharing options...
dalecosp Posted October 1, 2011 Share Posted October 1, 2011 Pretty sure you can just do that in the Joomla config or control panel: http://help.joomla.org/content/view/51/153/1/2/ Quote Link to comment https://forums.phpfreaks.com/topic/247225-datetime-in-joomla-template/#findComment-1274789 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.