I tried, to run the following code, on PHP v5.3.13, but still getting the class not found error:
$tZone = new DateTimeZone("Europe/Amsterdam");
How can I use DateTimeZone on 5.3.13?
Try this:
$tZone = new \DateTimeZone("Europe/Amsterdam");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With