aklump / local-timezone
Get the local timezone from the system.
Installs: 71
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/aklump/local-timezone
Requires (Dev)
- ext-simplexml: *
README
Provides a standard interface for getting the local, system timezone as a \DateTimeZone instance. This is not the same as relying on the PHP timezone setting, which may or may not be set. The determined value comes from the host system.
date_create('tomorrow', \AKlump\LocalTimezone\LocalTimezone::get());
Run the Example
To check compatibility you can run the example file from command line:
php -f example.php