xp-framework / core

The XP Framework is an all-purpose, object oriented PHP framework.
Other
19 stars 6 forks source link

Defer `date.timezone` checks until the util.Date class is used #322

Closed thekid closed 1 year ago

thekid commented 1 year ago

Currently, the XP Framework checks whether date.timezone is configured properly to ensure all the date functionality works as expected; and raises an exception during bootstrapping if not. This prevents any XP core functionality, even those not reliant on dates, from working if no timezone is set. This pull request moves the check to the static initializer for util.Date.

/cc @mikey179

thekid commented 1 year ago

Released in https://github.com/xp-framework/core/releases/tag/v11.5.0