Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • issay Friend
    #168692

    when 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?


    1. linear-date-stamp
    jooservices Friend
    #413507

    Hi
    Would you mind give me your FTP / back-end access for checking ?
    Thank you
    Viet Vu

    jooservices Friend
    #413549

    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

    jooservices Friend
    #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 Vu

    jooservices Friend
    #413571

    Hi
    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 Vu

    ps:// 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 Vu

    issay Friend
    #414243

    hello . i sent you PM about my site. can u send me your solution?

    jooservices Friend
    #414252

    Hi
    I’ve fixed. Please try at your side ? ( ps:// please clear browser cache before trying )
    Thank you
    Viet Vu

    issay Friend
    #414367

    hello ,
    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 Friend
    #414385

    Hi
    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>

Viewing 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