You are here

public function LogEntry::formatStartTime in Ultimate Cron 8.2

Format start time.

File

src/Logger/LogEntry.php, line 174

Class

LogEntry
Class for Ultimate Cron log entries.

Namespace

Drupal\ultimate_cron\Logger

Code

public function formatStartTime() {
  return $this->start_time ? \Drupal::service('date.formatter')
    ->format((int) $this->start_time, 'custom', 'Y-m-d H:i:s') : t('Never');
}