Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • luciffere Friend
    #163047

    Hello agein.
    Another problem with TELINE IV
    The date of a article in first page, published in janewspro is corect, but same article, in the category K2 view is not corect. Same article in item view mode the date is corect.


    1. 1
    2. 2
    3. 3
    luciffere Friend
    #387507

    This problem are in all joomlart K2 themes where are used the code:

    <?php
    $createDay = date('d', strtotime( $this->item->created));
    $createMonth = date('M', strtotime( $this->item->created));
    $createYear = date('Y', strtotime( $this->item->created));
    ?>

    Saguaros Moderator
    #387617

    <em>@luciffere 235655 wrote:</em><blockquote>This problem are in all joomlart K2 themes where are used the code:

    <?php
    $createDay = date('d', strtotime( $this->item->created));
    $createMonth = date('M', strtotime( $this->item->created));
    $createYear = date('Y', strtotime( $this->item->created));
    ?>

    </blockquote>

    you replace code :

    <?php
    $createDay = date('d', strtotime( $this->item->created));
    $createMonth = JText::_( date('F', strtotime( $this->item->created)) );
    $createYear = date('Y', strtotime( $this->item->created));
    ?>

    Then check this issue again

    luciffere Friend
    #387635

    I’m not talking about word length (APR. instead APRILIE). I talk about the day. DAY is wrong…
    I resolved my problem wit this code:

    <?php
    $stringDate = JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC3'));
    $arrdate = explode(" ", $stringDate);
    ?>
    <span class="date"><?php echo $arrdate[0]; ?></span>
    <span class="month-year">
    <strong><?php echo substr($arrdate[1], 0, 3); ?></strong>
    <strong><?php echo substr($arrdate[2], 0, 4); ?></strong>
    </span>

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  luciffere 13 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum