jeanvaljean / cakephp-timezone
Timezone and Datetime plugin for CakePHP 3.x
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 1
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.6.0
- cakephp/cakephp: ^3.6
Requires (Dev)
- fig-r/psr2r-sniffer: ^0.5.0
- phpunit/phpunit: ^5.7.14|^6.0
This package is not auto-updated.
Last update: 2024-10-27 06:28:54 UTC
README
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