Project Task error

Hi, when i update or create a project task, fatal error:

Fatal error: Call to a member function format() on a non-object in /home/xxxxx/public_html/suitecrm/custom/modules/ProjectTask/updateProject.php on line 22

This is my line 22:

$projectend = $projectend->format('Y-m-d');

Thanks.

Are you setting/formatting the date correctly?

Where ? In Administration -> Locale ? yes.

When saving the record? Does the record save, or white screen with the error?

White screen with the error, but the record is saved.

Same issue :frowning: Is here any solution for this ?

:frowning: :frowning: :frowning:
help…