Update Postgres Datediff

There was a problem when using:
$query -> func() -> dateDiff( [ 'COALESCE(Articles.modified, Articles.created)' => 'literal', date( "Y-m-d H:i:s" ) ] )