i18n\Formatter $timeZone

$timeZone public property

The time zone to use for formatting time and date values.

This can be any value that may be passed to date_default_timezone_set() e.g. UTC, Europe/Berlin or America/Chicago. Refer to the php manual for available time zones. If this property is not set, yii\base\Application::$timeZone will be used.

Note that the default time zone for input data is assumed to be UTC by default if no time zone is included in the input date value. If you store your data in a different time zone in the database, you have to adjust $defaultTimeZone accordingly.

public string $timeZone = null
doc_Yii
2016-10-30 17:05:56
Comments
Leave a Comment

Please login to continue.