Support forumCategory: BugsTime slots converting wrong from AM/PM to hh:mm
Christopher asked 5 years ago

Hi!
I love this plugin and would like to use it for booking appointments.
Unfortunately everytime I create a connection and, let’s say want it to last from 2:00pm to 3:00pm (format is given from dropdown-field), it’s apparently only saved without am/pm in the database. So when I refresh it, there is only 2:00 to 3:00 listed. With this “bug” it’s completely useless for me, because I can’t do appointments after 12:00.
Do you have any solution for me?
Kind regards

2 Answers
Nikola Loncar Staff answered 5 years ago

Hi Christopher,

can you please tell me what localization has been used for calendar inside EasyAppointments Settings page?

Best regards,
Nikola

Christopher replied 5 years ago

Hi Nikola!
Thanks for coming back to me!
Time-Format is set to 00-24 and localization is “de”

Nikola Loncar Staff answered 5 years ago

Looks like there is no conversion from 00-24 to am/pm on admin side? I will double check it now.

Best regards,
Nikola

Christopher replied 5 years ago

It’s really strange. It doesn’t matter which time format I choose and how I input my time. It gets converted to am/pm format (so 14:00 to 2:00pm, dropdown is also formatted as am/pm) and after refreshing it is saved “without am/pm” (so 2:00pm is 2:00).

andrea@iltimo.it replied 3 years ago

I do have the same problem, Time-Format is set to 00-24 and localization is “it”.
If I choose 14:00 It gets converted to 2:00pm but after refresh returns at 2:00am

Can you help?
Thanks

Nikola Loncar Staff replied 3 years ago

Hi, can you please check if the Timezone is set fine on backend? Also if you are using Google Calendar sync make sure that Timezone there is inline with WP one.

Best regards,
Nikola