Hello @deve42,
all dates are stored as UTC in the database, but they should convert to the time set in the WordPress general settings. What do you have there?
Thread Starter
deve42
(@deve42)
Just checked the Ubuntu server time with timedatectl and got:
Local time: Thu 2019-11-28 15:38:02 EST
Universal time: Thu 2019-11-28 20:38:02 UTC
Made a purchase and the License keys Created and Updated times are still shown in UTC.
@deve42
But what about the WordPress settings? What time zone is set there?
Thread Starter
deve42
(@deve42)
WordPress settings is set to Toronto and it displays:
Universal time is 2019-11-28 20:49:22. Local time is 2019-11-28 15:49:22.
@deve42
now that is really unusual. Do you perhaps have any other plugin installed which could mess up the timezone? I will try to recreate this on my end when I am back at home (Monday).
Thread Starter
deve42
(@deve42)
Don’t think so… I deactivated most plugins to see if it makes any difference and the remaining ones are:
Checkout Field Editor for WooCommerce
Code Snippets
License Manager for WooCommerce
WooCommerce
WooCommerce Stripe Gateway
WP Mail SMTP
Made a purchase and the license key Created and Updated times are still in UTC.
@deve42
You are correct about this. I was able to reproduce the bug easily.
Will be fixed in the next update.
@deve42
This was a very easy fix, I somehow renamed the option_name parameter in the get_option() call. Anyhow, here’s the diff if you would like to fix this for yourself until the next update:
https://github.com/drazenbebic/license-manager-for-woocommerce/commit/c6007465694a1b69a0d9efa3f2c98444e4c30f30
Thread Starter
deve42
(@deve42)
Thanks again for the fix!