test melih
 melih
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • Pankaj Sharma Moderator
    #966891

    Hi
    Open templates/ja_magz_ii/templateHelper.php file
    Find

    static $units = array(
    'YEAR' => 31536000,
    'MONTH' => 2592000,
    'WEEK' => 604800,
    'DAY' => 86400,
    'HOUR' => 3600,
    'MIN' => 60,
    'SEC' => 1,
    );

    Change it to

    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,
    );
    
    portosen Friend
    #968740

    Big thanks! but missing hour and minutes… and text "de"

    Current: 15 Setembro 2016

    We like: DD/MM/YYY as 20h53min

    "as" is TEXT in portuguese, to specified the time

    Pankaj Sharma Moderator
    #968796

    Hi
    In Joomla, you have the date formats LC3 ,LC2 . You can change the date format as per needs .
    Here is documentation help .

    Change the LC3 to LC2 in last code to add Time .

    portosen Friend
    #970201

    Please, we need help to change data format, dont working with Joomla developer

    Need this format: DD/MM/yyyy – HH:mm – Wich line change or modify to this format?

    Thanks!

    Pankaj Sharma Moderator
    #970246

    Hi
    Kindly apply the suggestion in my last post to show the time .

    Change the LC3 to LC2 in last code to add Time .
    Rest if you want to show the date in the last you have to make changes in the language file for the formate LC2
    Please check
    tutorial for more info how date formate works in Joomla .

    portosen Friend
    #970297

    The format LC2 or LC3, only show Hours
    The format show is 1 january 2016 – 00:30 is too long

    We Just need 01/01/2016 – 00:30 (dont work with Joomla or PHP developemnt)

    Thanks!

    Pankaj Sharma Moderator
    #970375

    Hi
    with date format LC2 you will get this view : http://prntscr.com/cla69o
    Go to //languages/en-GB/en-GB.ini
    Find

    
    DATE_FORMAT_LC2="l, d F Y H:i"

    Replace it with

    DATE_FORMAT_LC2=" d/m/y H:i"

    save and check you will have this view : http://prntscr.com/cla7vo

    portosen Friend
    #970383

    Big tanks!

    Work 🙂

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

This topic contains 8 replies, has 2 voices, and was last updated by  portosen 8 years, 4 months ago.

The topic ‘Change format date article’ is closed to new replies.