[jQuery] Datepicker issues with setDate

[jQuery] Datepicker issues with setDate


Hi,
#StartDate and #EndDate are my two input fields that I've converted to
datePickers.
Now if I call setDate to change the range to the past week like that :
$("#fStartDate, #fEndDate").datepicker("setDate", "-1w", "null");
Both input are set to 13th of October (today is 20th). I'd expect
#EndDate to be set to today's date since I've left it as null.
If I set both of them separately :
$("#fStartDate").datepicker("setDate", "-1w");
$("#fEndDate").datepicker("setDate", "null");
Then it works.
Is there a bug with the setDate method called on a range ?
Thanks