aklump/local-timezone

Get the local timezone from the system.

0.0.2 2025-08-22 20:42 UTC

This package is auto-updated.

Last update: 2025-08-22 20:45:49 UTC


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