Home Forums WoodMart support forum Countdown time taks universal time instead of local time

Countdown time taks universal time instead of local time

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #192005

    Jeriss Cloud Center
    Participant

    Dear,

    My local time is well set-up in my WordPress but the Woodmart Countdown timer is using the Universal Time instead of the Local Time.

    Because of that, the timer shows 2 hours extra of validity of the sales, which is wrong. This is breaking the accuracy of my sales. See attachments.

    Please fix it to use the local time instead of universal time.

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #192052

    Artem Temos
    Keymaster

    Hello,

    We using GMT timezone for that element. If you want to use WordPress timezone, add the following code snippet to the functions.php file in your child theme

    add_filter( 'woodmart_wp_timezone_element', '__return_true' );

    Kind Regards

    #192127

    Jeriss Cloud Center
    Participant

    Hello,

    I will use this function for the moment, but in my opinion there should be a theme setting to adjust this. The theme should be adjustable to any timezone in the world 🙂

    Thanks

    #192265

    Jeriss Cloud Center
    Participant

    Artem,

    I added the code un functions.php but it’s still the same, no difference. I cleared cache, republished the page etc. Can you please recheck?

    Thanks

    #192269

    Jeriss Cloud Center
    Participant

    for those with the same problem, as a workaround I used 2020/05/04 21:59 instead of 23:59

    but this should really get a fix in the settings

Viewing 5 posts - 1 through 5 (of 5 total)