how to show current month

I have modified the 04_export/01_serialize_xml.html example as shown below.
I have also written a sed script to update the following line so that the calendar always displays the current month:

 scheduler.init('scheduler_here',new Date(2011,01,06),"month");

However, the calendar always displays one month forward, in this case Feb 2011. Is there a way to fix this? Is there something in my config that is causing this behaviour.
Thanks for a great product by the way, very useful!

[code]

html, body{ margin:0px; padding:0px; height:100%; overflow:hidden; } .dhx_cal_navline input{ width:80px; position:absolute; top:1px; font-family:Tahoma; font-weight:8pt; } function init() { scheduler.config.xml_date="%Y-%m-%d %H:%i"; scheduler.config.prevent_cache = true; scheduler.init('scheduler_here',new Date(2011,01,06),"month"); scheduler.load("php/data.xml"); } function show(){
 
 
[/code]

Hello,

new Date() returns current date. So in your case you can simply change to

scheduler.init('scheduler_here',new Date(),"month");

Months count start from 0, so new Date(2011,01,06) is 06 February 2011.

Best regards,
Ilya