soderlind / acf-field-date-time-picker

Date and Time Picker field for Advanced Custom Fields v3 and v4
GNU General Public License v2.0
65 stars 27 forks source link

Issue changing am to pm after saving a post and coming back #85

Open joelnewcomer opened 9 years ago

joelnewcomer commented 9 years ago

Hi! I am having a problem changing a time from am to pm after a post is saved. See the screencast: http://recordit.co/3O10q95Qem

Any help would be greatly appreciated! Thanks!

joelnewcomer commented 9 years ago

I figured this out. I was using PHP time formatting instead of jQuery time formatting:

PHP (wrong) - h:mm a jQuery - h:mm tt

jQuery time formatting reference: http://trentrichardson.com/examples/timepicker/

timbakkum commented 8 years ago

timepicker-bug i have the same issue, got a timepicker with h:mm tt formatting.

Upon save, the pm or am dissapears from the field, but time is displayed correctly on front, 0 - 24 hours. Upon second save, without the pm or am in the field, time is not displayed correctly anymore on front, on 0-12 hours.

Any ideas or help would be greatly appreciated! Thanks!