src/Contao/Event/Subscriber.php
private static function renderDateTimePropertyIsTstamp(RenderReadablePropertyValueEvent $event, $property, $value)
    {
        if ((null !== $event->getRendered()) || ('tstamp' !== $property->getName())) {
            return;
        }

        $dispatcher = $event->getEnvironment()->getEventDispatcher();

        // Date and time format.
        $event->setRendered(self::parseDateTime($dispatcher, self::getConfig()->get('timeFormat'), $value));
    }
private static function renderDateTimePropertyIsTstamp(RenderReadablePropertyValueEvent $event, $property, $value)
    {
        if ((null !== $event->getRendered()) || ('tstamp' !== $property->getName())) {
            return;
        }

        $dispatcher = $event->getEnvironment()->getEventDispatcher();

        // Date and time format.
        $event->setRendered(self::parseDateTime($dispatcher, self::getConfig()->get('timeFormat'), $value));
    }
private static function renderDateTimePropertyIsTstamp ( RenderReadablePropertyValueEvent $ event , $ property , $ value ) { if ( ( null !== $ event -> getRendered ( ) ) || ( 'tstamp' !== $ property -> getName ( ) ) ) { return ; } $ dispatcher = $ event -> getEnvironment ( ) -> getEventDispatcher ( ) ; // Date and time format. $ event -> setRendered ( self :: parseDateTime ( $ dispatcher , self :: getConfig ( ) -> get ( 'timeFormat' ) , $ value ) ) ; }
Render date time when property is tstamp.

@param RenderReadablePropertyValueEvent $event    The event to store the value to.
@param PropertyInterface                $property The property for render it.
@param int                              $value    The value to format.

@return void
Render date time when property is tstamp .