CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 calendar shows wrong date

Print topic Send  topic

Author Message
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

View profile  Send private message
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);  
  
?>  
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.