I have a problem with setting the datetime attribute to the current date, if I force its current timestamp, I get "Call to the member function () format in the line" ERROR
**here are my getter and setter with some modifications**
public function getDateajout()
{
date_default_timezone_set('Africa/Tunis');
$dateajout=date_default_timezone_get();
return $this->dateajout;
}
public function setDateajout($dateajout)
{
$this->dateajout =$dateajout;
}
source
share