jeanvaljean/cakephp-timezone

Timezone and Datetime plugin for CakePHP 3.x

1.0.2 2018-11-26 14:17 UTC

This package is not auto-updated.

Last update: 2024-10-27 06:28:54 UTC


README

Build Status codecov Latest Stable Version Minimum PHP Version License Total Downloads

A plugin to handle timezone and datetime.

This branch is for CakePHP 3.6+.

What is this plugin for?

Easy Timezone and Datetime handling.

Background

It's common to deal with timezone and datetime when you want your application to be able to:

  • Store basic datetime from all client timezone possible.
  • Store futur datetime and its own timezone related to from all client timezone possible.
  • Display basic datetime to all client timezone possible.
  • Display futur datetime and its own timezone.
  • Validate timezone.

To do it, Timezone Plugin provides:

  • A middleware detecting client timezone.
  • A behavior converting datetime data from one timezone to another one.
  • An herlper able to display one timezone name and its offset, get an array list of all timezone identifier, display a datetime input text, display a timezone select.
  • A validation class to validate timezone field

Installation & Docs