Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • emanmashlah Friend
    #993857

    Hi
    I need to change the date format for articles. instead of appears ‘1 month ago’ I want appear the actual date like ‘4-jun-2016’
    How can i make this ?

    Pankaj Sharma Moderator
    #993877

    Hi
    Find my suggestion in this topic , for same matter
    https://www.joomlart.com/forums/topic/how-to-change-the-date-format/
    Regards

    emanmashlah Friend
    #994401

    Thank you Pankaj

    In my website I found these file templates/ja_magz_ii/helper.php
    Then replace the code as you said , but after that the website dose not work well
    What should i do ?

    Pankaj Sharma Moderator
    #994414
    This reply has been marked as private.
    emanmashlah Friend
    #994606
    This reply has been marked as private.
    Pankaj Sharma Moderator
    #994623

    Hi
    I fixed it directly on your site .
    Kindly check the site now .
    You can see the code changes like in below code

    class JATemplateHelper {
    
      public static function relTime($timespan, $granularity = 1) {
       return JText::sprintf(JHtml::_('date', $timespan, JText::_('DATE_FORMAT_LC3')));
    static $units = array(
    'YEAR' => 31536000,
    'MONTH' => 2592000,
    'WEEK' => 604800,
    'DAY' => 86400,
    'HOUR' => 3600,
    'MIN' => 60,
    'SEC' => 1,
    );
    
    emanmashlah Friend
    #994669

    Thanks a lot 🙂

    Pankaj Sharma Moderator
    #994707

    You are welcome !

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

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

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