/** * Process as time as current tense (Today at 0:00) */ protected function evalTimetenseTypeValue($record, $column, $value) { if ($value === null) { return null; } $value = $this->validateDateTimeValue($value, $column); return DateTimeHelper::timeTense($value); }
/** * Process as time as current tense (Today at 0:00) */ protected function evalTimetenseTypeValue($record, $column, $value) { if ($value === null) { return null; } $dateTime = $this->validateDateTimeValue($value, $column); $value = DateTimeHelper::timeTense($dateTime); return Backend::dateTime($dateTime, ['defaultValue' => $value, 'timeTense' => true]); }