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 Zend Framework 3:
$ composer require zendframework/zend-modulemanager "*"
Additional for Zend Expressive:
$ composer require psr/http-message "*" $ composer require psr/http-server-middleware "*"
For Zend Framework 3:
Bupy7\Zf\TimeZoneto module list.
For Zend Expressive:
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.