bupy7/zf-time-zone

A time zone module for Laminas and Mezzio.

2.0.0 2020-11-28 13:57 UTC

This package is auto-updated.

Last update: 2021-09-28 15:53:49 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License Build Status Coverage Status

Module for applying time zone towards the application.

Installation

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 "*"

Usage

For Laminas:

  1. Add Bupy7\Zf\TimeZone to module list.

For Mezzio:

1: Add Bupy7\Zf\TimeZone\ConfigProvider to your config project;

2: Add Bupy7\Zf\TimeZone\Middleware\BootstrapMiddleware to your middleware pipeline.

Next: Set your time zone in a local config:

'time_zone' => [
    'time_zone' => 'Europe/Moscow',
],

And profit!

License

zf-time-zone is released under the BSD 3-Clause License.