test
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • mecreative Friend
    #163524

    Hi,
    I am not able to change the time from GMT to my current time. Please let me know how to do it. I set the server time as my time but it didn’t work.
    Thanks.

    khoand Friend
    #389584

    Could you let me know where time is incorrect? A snapshot with your annotation is very helpful.

    mecreative Friend
    #389587

    It is on the top bar Last updated time. It is correct in GMT but I need it in my country time which is GMT+3

    khoand Friend
    #389596

    You replace this code from <joomla url>pluginssystemjat3jat3corecommon.php file

    $date =& JFactory::getDate(strtotime($data->created));
    $user =& JFactory::getUser();
    $tz = $user->getParam('timezone');
    $sec =$date->toUNIX(); //set the date time to second
    return gmdate("h:i:s A", $sec+$tz).' GMT';

    with


    return JHTML::date($data->created, 'h:i:s A');

    mecreative Friend
    #389600

    It is shown like below when I changed the code.

    Last updateh:i:s A

    khoand Friend
    #389607

    I tested my localhost and it works normally. Could you give me username+password of ftp?

    khoand Friend
    #389633

    I can’t log in to backend or ftp with username+password that you gave. Please check it

    khoand Friend
    #389676

    Sorry about inconvenience. I need check <joomla url>pluginssystemjat3jat3corecommon.php file and <joomla url>librariesjoomlahtmlhtml.php file. Please provide me username+password of ftp.

    khoand Friend
    #389743

    – Sorry about inconvenience. I fixed it. I replace this code

    return JHTML::date($data->created, 'h:i:s A');
    with

    return JHTML::date($data->created, '%H:%M:%S');
    – first code is used for ver 1.6, second is used for ver 1.5

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

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

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