acf-field-date-time-picker icon indicating copy to clipboard operation
acf-field-date-time-picker copied to clipboard

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

Open joelnewcomer opened this issue 10 years ago • 2 comments

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 avatar Apr 21 '15 15:04 joelnewcomer

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/

joelnewcomer avatar Apr 21 '15 15:04 joelnewcomer

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!

timbakkum avatar Nov 13 '15 16:11 timbakkum