src/Formatter/Pdf.php
public function format(\DateTimeInterface $date)
    {
        if ($date->getOffset() == 0) {
            return $date->format('YmdHis\Z');
        }
        return str_replace(':', '\'', $date->format('YmdHisP')) . '\'';
    }
public function format(\DateTimeInterface $date)
    {
        if ($date->getOffset() == 0) {
            return $date->format('YmdHis\Z');
        }
        return str_replace(':', '\'', $date->format('YmdHisP')) . '\'';
    }
public function format ( \ DateTimeInterface $ date ) { if ( $ date -> getOffset ( ) == 0 ) { return $ date -> format ( 'YmdHis\Z' ) ; } return str_replace ( ':' , '\'' , $ date -> format ( 'YmdHisP' ) ) . '\'' ; }
Formats the date according to the formatting string

@param \DateTimeInterface $date

@return string
Formats the date according to the formatting string