src/WordPress/Models/Post.php
protected function updateTimestamps()
	{
		$time = $this->freshTimestamp();

		$gmt = new Carbon;
		$gmt->timestamp = $time->timestamp - ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS );

    if (! $this->isDirty(static::UPDATED_AT)) {
      $this->setUpdatedAt($time);
    }

    if (! $this->exists && ! $this->isDirty(static::CREATED_AT)) {
      $this->setCreatedAt($time);
    }

    if (! $this->isDirty('post_modified_gmt')) {
      $this->post_modified_gmt = $gmt;
    }

    if (! $this->exists && ! $this->isDirty('post_gmt')) {
      $this->post_gmt = $gmt;
    }
	}
protected function updateTimestamps()
	{
		$time = $this->freshTimestamp();

		$gmt = new Carbon;
		$gmt->timestamp = $time->timestamp - ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS );

    if (! $this->isDirty(static::UPDATED_AT)) {
      $this->setUpdatedAt($time);
    }

    if (! $this->exists && ! $this->isDirty(static::CREATED_AT)) {
      $this->setCreatedAt($time);
    }

    if (! $this->isDirty('post_modified_gmt')) {
      $this->post_modified_gmt = $gmt;
    }

    if (! $this->exists && ! $this->isDirty('post_gmt')) {
      $this->post_gmt = $gmt;
    }
	}
protected function updateTimestamps ( ) { $ time = $ this -> freshTimestamp ( ) ; $ gmt = new Carbon ; $ gmt -> timestamp = $ time -> timestamp - ( get_option ( 'gmt_offset' ) * HOUR_IN_SECONDS ) ; if ( ! $ this -> isDirty ( static :: UPDATED_AT ) ) { $ this -> setUpdatedAt ( $ time ) ; } if ( ! $ this -> exists && ! $ this -> isDirty ( static :: CREATED_AT ) ) { $ this -> setCreatedAt ( $ time ) ; } if ( ! $ this -> isDirty ( 'post_modified_gmt' ) ) { $ this -> post_modified_gmt = $ gmt ; } if ( ! $ this -> exists && ! $ this -> isDirty ( 'post_gmt' ) ) { $ this -> post_gmt = $ gmt ; } }
Update the creation and update timestamps;
WordPress has two timestamp fields, obviously.

@return void
Update the creation and update timestamps ; WordPress has two timestamp fields obviously .