protected function commitMessage() { $msg[] = "Update composer.json ({$this->name})"; $msg[] = ''; $msg[] = 'Reference: http://cgit.drupalcode.org/drupal/commit/?id=' . $this->reference->getCommitHash(); return implode("\n", $msg); }
/** * @return SS_Datetime */ public function Created() { $created = $this->tag->getCommit()->getCommitterDate(); $created->setTimezone(new DateTimeZone(date_default_timezone_get())); $d = SS_Datetime::create(); $d->setValue($created->format('Y-m-d H:i:s')); return $d; }
/** * @return SS_Datetime */ public function Created() { $created = $this->tag->getCommit()->getCommitterDate(); // gitonomy sets the time to UTC, so now we set the timezone to // whatever PHP is set to (date.timezone). This will change in the future if each // deploynaut user has their own timezone $created->setTimezone(new DateTimeZone(date_default_timezone_get())); $d = new SS_Datetime(); $d->setValue($created->format('Y-m-d H:i:s')); return $d; }