src/Extension/Core/Type/DateTimeType.php
public function buildColumn(ColumnInterface $column, array $options)
    {
        $transformer = new ChainTransformer();

        if ('string' === $options['input']) {
            $transformer->append(
                new StringToDateTimeTransformer($options['model_timezone'], $options['model_timezone'])
            );
        } elseif ('timestamp' === $options['input']) {
            $transformer->append(
                new TimestampToDateTimeTransformer($options['model_timezone'], $options['model_timezone'])
            );
        }

        $transformer->append(new DateTimeToLocalizedStringTransformer(
            $options['model_timezone'],
            $options['view_timezone'],
            $options['date_format'],
            $options['time_format'],
            $options['calendar'],
            $options['format']
        ));

        $column->setViewTransformer($transformer);
    }
public function buildColumn(ColumnInterface $column, array $options)
    {
        $transformer = new ChainTransformer();

        if ('string' === $options['input']) {
            $transformer->append(
                new StringToDateTimeTransformer($options['model_timezone'], $options['model_timezone'])
            );
        } elseif ('timestamp' === $options['input']) {
            $transformer->append(
                new TimestampToDateTimeTransformer($options['model_timezone'], $options['model_timezone'])
            );
        }

        $transformer->append(new DateTimeToLocalizedStringTransformer(
            $options['model_timezone'],
            $options['view_timezone'],
            $options['date_format'],
            $options['time_format'],
            $options['calendar'],
            $options['format']
        ));

        $column->setViewTransformer($transformer);
    }
{@inheritdoc}