86 public function render($date = NULL, $format =
'') {
88 $format =
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'ddmmyy'] ?:
'Y-m-d';
97 if (!$date instanceof \DateTime) {
100 $date = new \DateTime(
'@' . $date);
102 $date = new \DateTime($date);
104 $date->setTimezone(
new \DateTimeZone(date_default_timezone_get()));
106 throw new \TYPO3\CMS\Fluid\Core\ViewHelper\Exception(
'"' . $date .
'" could not be parsed by \DateTime constructor.', 1241722579);
110 if (strpos($format,
'%') !== FALSE) {
111 return strftime($format, $date->format(
'U'));
113 return $date->format($format);
static canBeInterpretedAsInteger($var)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]