yehudah
Posts: 5
|
Posted: 05/08/2012, 8:55 PM |
|
I have a page with the monthly calendar
the box for today's date is highlighted
the problem is the the highlighted day is tomorrows date not today
is there a setting or something that controls which day is the current day in the calendar
does anyone now how to fix this
please help
|
|
|
Lucius
Posts: 220
|
Posted: 05/09/2012, 2:08 AM |
|
Have you checked the date on server that runs PHP you are using to code in CCS? For example for PHP it can be also important to set proper timezone in PHP ini file (or directly in PHP code...)
Simplest form of debbuging for PHP for example would be:
<?php
$now_is = date("dd-mm-yyyy"); // this will output current date for your server
print_r($now_is);
?>
|
|
|
yehudah
Posts: 5
|
Posted: 05/09/2012, 6:01 AM |
|
Hi Lucius
yes this was exactly the problem i changed the time zone in my php ini file , restarted apache and all is good
thank you
|
|
|
|