Datetime is not rendering per user's time Zone after saving

Support MB Builder Datetime is not rendering per user's time Zone after savingResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #45436
    lighterdayzlighterdayz
    Participant

    I have custom fields start_time and end_time that are saved as time stamp. I am embedding the custom fields with field connections in Beaver Builder.

    Example: [wpbb post:meta_box field='start_date' date_format='l, F j, Y g:i A']

    The times are not showing correctly in other time zones. Here is the example of the page. The time is showing 1:00PM to 5:00PM in both Eastern US and Pacific US. https://abilityjobfair.org/june-13-2024-ability-job-fair/

    What else can I do to have the proper time for each time zone?
    Thank you!
    Marge

    #45438
    lighterdayzlighterdayz
    Participant

    Edit: I had to change the page example in the orginal post because it was public. Here is a test page of the page. https://abilityjobfair.org/test876532hehgtgd/

    Here is also a screen grap of the settings: https://app.screencast.com/gtgBxZACFGA1e

    Any help to make these fields appear correctly in users time zones would be greatly appreciated.
    Thanks again,
    Marge

    #45444
    PeterPeter
    Moderator

    Hello,

    I'm afraid that it isn't possible to show the proper time for each user's/visitor's time zone. The time is saved to the database and only displayed one time value.

    #45446
    lighterdayzlighterdayz
    Participant

    I thought the documentation says that is possible using UTC offset when saving as timestamp in the DB?

    #45462
    PeterPeter
    Moderator

    Yes, the time is saved to the database with the "timezone (UTC) + offset". But it doesn't mean displaying the proper time for each user's/visitor's time zone in the frontend, just the value in the database when saving the post.

    Following the documentation https://docs.metabox.io/fields/datetime/

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