• I have PHP configured with the default time zone of: America/Los_Angeles

    I have my WordPress install configured as: America/Los_Angeles

    When I view the HTML I can see the correct time in the data-time field (6:00 AM PT in this case).

    However, the displayed time on the button appears to be a UTC time, which is wrong.

    <tr class="mz_schedule_table mz_description_holder mz_location_1 mz_Vinyasa mz_InStudio-Vinyasa">
    				<td class="mz_date_display" data-time="2022-03-07T06:00:00">
    				2:00 pm - 3:00 pm<br />

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jonotech

    (@jonotech)

    It appears the Mindbody API is sending back UTC date/times.

    Strangely changing the WordPress install to use a UTC timezone makes the times display correctly. This would be problematic if we also had other dates in local time (blog post dates, etc).

    Plugin Author mikeill

    (@mikeill)

    Hi.

    Thanks for using and thanks for the post. I’ll have a look as soon as possible. In the meantime, you are welcome to submit a pr: https://github.com/MikeiLL/mz-mindbody-api

    –Mike

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Timezone Formatting’ is closed to new replies.