Wrong dates from datepicker


Hi everyone,

I try to get the correct date from datepicker but the $period->getDateStart()->toString() always returns the wrong date ! Even Piwik_Common::getRequestVar(‘date’) returns the wrong date.

Does anyone already had the same problem and found a way how to solve it ?

Note: $period->getDateEnd()->toString() returns the correct value.
Note2: It seems that controller.php which invoke the function containing $period->getDateStart()->toString() pass the wrong dates.
Note3: The controller pass definitly pass definitetly the wrong date an period to the api.php

Best regards

(JulienM) #2

Could you clarify what is it exactly you are trying to do ? Are you building a new plugin or tweaking Piwik files ?