Need for setting timezone
-
Hi,
We recently came across an issue in our plugin, Order Delivery Date Pro. The issue was that incorrect time slots were being shown in email notifications. On debugging, we found that from your plugin, the timezone was being changed when no timezone is set on the server from this code in the file woocommerce-pdf-invoices\vendor\mpdf\mpdf\mpdf.php:
if (function_exists("date_default_timezone_set")) { if (ini_get("date.timezone") == "") { date_default_timezone_set("Europe/London"); } }
I was wondering as to why would the Invoices plugin need to set a timezone. But if it’s a bug, then I would suggest you could remove that piece of code from your plugin.
:Vishal
- The topic ‘Need for setting timezone’ is closed to new replies.