-
AuthorPosts
-
issay Friend
issay
- Join date:
- November 2009
- Posts:
- 114
- Downloads:
- 0
- Uploads:
- 22
- Thanks:
- 26
- Thanked:
- 5 times in 1 posts
September 18, 2011 at 4:35 pm #168692when i update my site with a new article i get a minus time stamp in ja news pro linear mode?
the article that just now i created show -1 days ago
whats the solution?
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 18, 2011 at 11:25 pm #413507Hi
Would you mind give me your FTP / back-end access for checking ?
Thank you
Viet Vujooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 19, 2011 at 4:45 am #413549Thank you
I’ve received your PM. I’m in checking also working w/ another your issue on site: http://www.joomlart.com/forums/topic/read-more-in-same-line-of-intro-text/
Thank you and waiting
Viet Vu1 user says Thank You to jooservices for this useful post
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 19, 2011 at 6:22 am #413554<em>@jooservices 268781 wrote:</em><blockquote>Thank you
I’ve received your PM. I’m in checking also working w/ another your issue on site: http://www.joomlart.com/forums/topic/read-more-in-same-line-of-intro-text/
Thank you and waiting
Viet Vu</blockquote>Hi
I got this ! This’s our bug. time () should get via Joomla API that already have timezone configured 🙂
I’ll make patch into your site
Thank you
Viet Vu1 user says Thank You to jooservices for this useful post
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 19, 2011 at 9:13 am #413571Hi
I’ve already release a patch. Please check here :
http://www.joomlart.com/forums/topic/some-bugs-and-how-to-fix-it-with-ja-newspro/
Thank you
Viet Vups:// about readmore issue. I’ve done in local but need confirm from you because your layout moment little different w/ your screenshot.
Thank you
Viet Vu1 user says Thank You to jooservices for this useful post
issay Friendissay
- Join date:
- November 2009
- Posts:
- 114
- Downloads:
- 0
- Uploads:
- 22
- Thanks:
- 26
- Thanked:
- 5 times in 1 posts
September 22, 2011 at 5:49 am #414243hello . i sent you PM about my site. can u send me your solution?
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 22, 2011 at 7:04 am #414252Hi
I’ve fixed. Please try at your side ? ( ps:// please clear browser cache before trying )
Thank you
Viet Vuissay Friendissay
- Join date:
- November 2009
- Posts:
- 114
- Downloads:
- 0
- Uploads:
- 22
- Thanks:
- 26
- Thanked:
- 5 times in 1 posts
September 22, 2011 at 10:12 pm #414367hello ,
I tried different ways. with different so many new testing articles. but still see -1 DAYS AGO . I cleabed t3 cache and joomla cache folder. and cleared my browser history completely. and checked with different Server Time Zone (places I know its current time)can you tell me which files i have to modify. my real site is in local host. so can you tell me which php or java file i have to modify.
thanks for your help
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 23, 2011 at 1:24 am #414385Hi
This’s my solution:<em>@jooservices 268787 wrote:</em><blockquote>content.php
At first in this Helper for
if($enabletimestamp) $row->created = $helper->generatTimeStamp($row->modified);
else $row->created = JHTML::_('date', $row->modified);
This code could be wrong if article have just created and modified default ( 00 : i forgot which format ).
So i update this like
if ($row->modified == '0000-00-00 00:00:00') {
$time = $row->created;
} else {
$time = $row->modified;
}
if ($enabletimestamp)
$row->created = $helper->generatTimeStamp ( $time );
else
$row->created = JHTML::_ ( 'date', $time );
The first issue.
And if we check into generatTimeStamp
$timeStamp = strtotime($date);
$Time_Left = (time() - $timeStamp);
I don’t think use time() here is good idea. Because we also have timezone config in Joomla backend
So this’s my code
jimport ( 'joomla.utilities.date' );
$date = & JFactory::getDate ( $date );$timeStamp = $date->toUnix ();
$now = & JFactory::getDate ();
$now = $now->toUnix ();
$Time_Left = ($now - $timeStamp);Thank you
Viet Vu</blockquote>AuthorPostsViewing 9 posts - 1 through 9 (of 9 total)This topic contains 9 replies, has 2 voices, and was last updated by jooservices 13 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum
minus time stamp in news pro linear mode
Viewing 9 posts - 1 through 9 (of 9 total)