A time zone module for Laminas and Mezzio.
Module for applying time zone towards the application.
The preferred way to install this extension is through composer:
$ composer require bupy7/zf-time-zone "*"
to the require section of your composer.json file.
Additional for Laminas:
$ composer require laminas/zend-modulemanager "*"
Additional for Mezzio:
$ composer require psr/http-message "*" $ composer require psr/http-server-middleware "*"
Bupy7\Zf\TimeZoneto module list.
Bupy7\Zf\TimeZone\ConfigProvider to your config project;
Bupy7\Zf\TimeZone\Middleware\BootstrapMiddleware to your middleware pipeline.
Next: Set your time zone in a local config:
'time_zone' => [ 'time_zone' => 'Europe/Moscow', ],
zf-time-zone is released under the BSD 3-Clause License.