Symfony\Component\Form\Extension\Core\DataTransformer\BaseDateTimeTransformer::__construct
Constructor.
Signature
public function __construct([string
$inputTimezone = null,
[string
$outputTimezone = null]] )
Parameters
$inputTimezone
— string- The name of the input timezone
$outputTimezone
— string- The name of the output timezone
Errors/Exceptions
-
UnexpectedTypeException
- if a timezone is not a string