Support » Plugin: License Manager for WooCommerce » Updated time

  • Resolved deve42

    (@deve42)


    Hi Drazen,

    The License keys page shows Updated time in UTC and not the server’s local time. Is this intentional?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Drazen Bebic

    (@drazenbebic)

    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?

    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.

    Plugin Author Drazen Bebic

    (@drazenbebic)

    @deve42

    But what about the WordPress settings? What time zone is set there?

    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.

    Plugin Author Drazen Bebic

    (@drazenbebic)

    @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).

    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.

    Plugin Author Drazen Bebic

    (@drazenbebic)

    @deve42

    You are correct about this. I was able to reproduce the bug easily.

    Will be fixed in the next update.

    Plugin Author Drazen Bebic

    (@drazenbebic)

    @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

    Thanks again for the fix!

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.