How to fix the current date in calendar module?
How to fix the current date in calendar module?
I recently installed the latest calendar module, but the the current date it show is yesterday. Meaning my time here today is Saturday, July 12. But the calendar module it shows Friday, July 11. Is it on the server side? calendar module? or somewhere inside the CMS?
Re: How to fix the current date in calendar module?
Currently it's pulling time from the server...
Re: How to fix the current date in calendar module?
OK, thanks, I'll check the server I'm using.
Re: How to fix the current date in calendar module? [solved?]
Well, I can't change the date or time zone because I'm using on a shared hosting environment.
Here's what I did,
this code seems working..
I added this code
at the Calendar's module function.displaycalendar.php
(http://mysite.com/modules/Calendar/func ... lendar.php)
and place it on top
You can check this link for different time zones http://us3.php.net/manual/en/timezones.php
I wonder if this function can be included for future use. Setting the time zone for Calendar's module
Here's what I did,
this code seems working..
I added this code
Code: Select all
date_default_timezone_set('Pacific/Guam');
(http://mysite.com/modules/Calendar/func ... lendar.php)
and place it on top
Code: Select all
<?php
date_default_timezone_set('Pacific/Guam');
url]function DisplayCalendar(&$module, $id, &$parameters, $returnid)
{
global $gCms;..........
I wonder if this function can be included for future use. Setting the time zone for Calendar's module