Issue with DateTime Picker Metabox field. ( it adds 5:30 hours to correct time )

Support Meta Box AIO Issue with DateTime Picker Metabox field. ( it adds 5:30 hours to correct time )

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40532
    Nitesh KumarNitesh Kumar
    Participant

    As required, I am using my own country IST Timezone ( GMT + 5:30 for India ) here under Timezone setting of WordPress ( Screenshot: https://a.cl.ly/GGuJmLod )

    So, if Universal time is 2023-02-15 10:02:27.then Local time is 2023-02-15 15:32:27.

    But when I use DateTime Picker field ( https://docs.metabox.io/fields/datetime/ ) of Metabox, it is showing wrong date and time. So, if I want to show the time: 2023-02-15 5:00:00 , it shows 2023-02-15 10:30:00

    So, probably it's doing GMT+5:30 + 5:30 while as per country timezone, it should be GMT +5:30 only. Is this a bug? How to fix this?

    Note: I am using Metabox date/time picker field to show expiry countdowns on an Elementor based website.

    Thank you.

    #40559
    PeterPeter
    Moderator

    Hello,

    I've tested this case on my local site but do not see that issue. Can you please share some screenshots when you select the date time and output the field value? How can I reproduce the issue on my site?

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