Saturday, 22 November 2008
Home arrow KopiForum

Seach

Login

Who's Online

No Users Online
No new users as of today.

Forum Statistics

Total message: 3

Top Forum Users

  • Kopicat (1)
  • Clownfish (1)
  • jittery (1)
Welcome to The Home of KopiCat!

KopiForum

Click here to see the profile of this user
SVTechie BlogSideBar Date Time Offset
Date: 2007/03/15 18:50 By: Kopicat Status: Admin  
Karma: 0  
Admin

Posts: 1
graph
As you can see, I installed the svtechie blogsidebar which is the column on the right. It works really well, except that today's date that is hightlighted in the calendar does not corresponds to my current date in my locale.

After some research, I realised that the current date being used is called with
Code:

 $time time();


This will only return the current date time in the system that the web server has been configured on.

In order to let the calendar reflect the date / time correctly in your country with the offset that you had configured in the Joomla global settings, replace the above with:
global $mosConfig_offset;
$time = time() + $mosConfig_offset * 60 * 60

Remember to check that you have the inclusion of the global.php at the start of the file.

Personally, I replaced 2 such entries in mod_sidebar.php and 1 entry in blogsidebar.php (component). I believe this might apply to the blogcal too.

Post edited by: Kopicat, at: 2007/03/15 18:51
Home of KopiCat!
http://www.kopicat.net
Click here to see the profile of this user The administrator has disabled public write access.


Latest Comments

200 Pounds Beauty (1 comments) Monday, 03 September 2007
My First Blog!! (3 comments) Wednesday, 20 June 2007
My Wedding Wedsite (1 comments) Wednesday, 20 June 2007
Great Singapore Sale 2007 (3 comments) Wednesday, 06 June 2007
2 year old Cheque found (4 comments) Thursday, 03 May 2007

Archive

Google Ads