Closed shanecurran closed 8 years ago
The other option to solve this issue would be to simply mute the warning (place an @ before the date() call), however that is bad practice. It'd be better to solve the issue, even though this fix defaults the timezone of the script to UTC
Libraries should not make changes that affect the global state. Including this in the source implies that any application that uses the library, now gets their timezone automatically switched to UTC.
Instead, the application that uses the library should be responsible for also setting their own timezone.
Set the default timezone in the library to UTC