src/Database/Model/Base.php
protected function setUpdatedAt()
    {
        // Convert created_at back to GMT for saving
        if (isset($this->created_at)) {
            $this->created_at = Time::localToGmt($this->created_at);
        }

        // Set updated at
        if (!isset($this->updated_at) or $this->updated_at === null) {
            $this->updated_at = 'NOW()';
        }
    }
protected function setUpdatedAt()
    {
        // Convert created_at back to GMT for saving
        if (isset($this->created_at)) {
            $this->created_at = Time::localToGmt($this->created_at);
        }

        // Set updated at
        if (!isset($this->updated_at) or $this->updated_at === null) {
            $this->updated_at = 'NOW()';
        }
    }
protected function setUpdatedAt ( ) { // Convert created_at back to GMT for saving if ( isset ( $ this -> created_at ) ) { $ this -> created_at = Time :: localToGmt ( $ this -> created_at ) ; } // Set updated at if ( ! isset ( $ this -> updated_at ) or $ this -> updated_at === null ) { $ this -> updated_at = 'NOW()' ; } }
Set the updated_at value.
Set the updated_at value .