-
AuthorPosts
-
January 1, 2016 at 11:16 pm #836893
Dear admin,
On the "What’s new" module show the date, but inaccurate.
Now is January 2, but the date still show January 1.
There are late in about 12 hour.
How to adjust it to local time?-
Ninja Lead Moderator
Ninja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 4, 2016 at 7:29 am #837954Hi,
Thanks for your feedback.
This is a bug from our product, you can fix this bug with my hotfix below
Open templates/ja_teline_v/tpls/blocks/header.php file
find and change
<span class="number date"><?php echo date('d') ?></span> <div class="text"> <span class="day"><?php echo JText::_(date('D')) ?></span>, <span class="month"><?php echo JText::_(date('F').'_SHORT') ?></span> </div>
to
<?php $date = new DateTime(); $config = JFactory::getConfig(); $date->setTimezone(new DateTimeZone($config->get('offset'))); ?> <span class="number date"><?php echo $date->format('d') ?></span> <div class="text"> <span class="day"><?php echo JText::_($date->format('D')) ?></span>, <span class="month"><?php echo JText::_($date->format('F').'_SHORT') ?></span> </div>
Let me know if it helps
Regards
January 4, 2016 at 10:56 am #838167Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 4, 2016 at 3:13 pm #838274You can give me the credentials info: the URL of your site and admin login via Set as private reply. I will help you to check and fix this bug directly on your site.
January 4, 2016 at 5:01 pm #838333This reply has been marked as private.Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 5, 2016 at 9:49 pm #839485It’s work.
Problem solved.
Thanks very much.AuthorPostsViewing 7 posts - 1 through 7 (of 7 total)This topic contains 6 replies, has 2 voices, and was last updated by Danar 8 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum
-