-
AuthorPosts
-
May 3, 2011 at 8:22 am #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 Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 3, 2011 at 9:12 am #389584Could you let me know where time is incorrect? A snapshot with your annotation is very helpful.
May 3, 2011 at 9:20 am #389587It 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 Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 3, 2011 at 9:44 am #389596You 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');May 3, 2011 at 9:55 am #389600It is shown like below when I changed the code.
Last updateh:i:s A
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 3, 2011 at 10:18 am #389607I tested my localhost and it works normally. Could you give me username+password of ftp?
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 3, 2011 at 11:59 am #389633I can’t log in to backend or ftp with username+password that you gave. Please check it
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 3, 2011 at 7:09 pm #389676Sorry about inconvenience. I need check <joomla url>pluginssystemjat3jat3corecommon.php file and <joomla url>librariesjoomlahtmlhtml.php file. Please provide me username+password of ftp.
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 4, 2011 at 8:02 am #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.51 user says Thank You to khoand for this useful post
-
AuthorPosts
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