trentrichardson / jQuery-Timepicker-Addon

Adds a timepicker to jQueryUI Datepicker
http://trentrichardson.com/examples/timepicker/
MIT License
2.66k stars 1.05k forks source link

Cannot get 'AM/PM' to appear #876

Open greenwoodonline opened 8 years ago

greenwoodonline commented 8 years ago

Hello, thank you for this addon! I have some kind of problem, cannot get "AM/PM" to appear in my form. I have tried different themes, even tried different WordPress install, still no "AM/PM" ....any ideas for me to try?

Here is my short-code format:

<p>Start Time (required)<br />
[time time-start time-format:HH:mm tt step-minute:15] </p>

I thought maybe js conflicts, but since trying in different themes, and even in a different install, maybe I am missing something else?

Would it be possible to post my dev site URL for anyone to see source code? If errors? Here is it: http://www.joegreenwood.com/testing-datepicker/

Please help? Thank you!

trentrichardson commented 8 years ago

Looks like you just need to use lower case "hh" in the time format as it specifies 12 hour. HH means 24 hour and so it won't show am/pm On Apr 21, 2016 9:47 PM, "greenwoodonline" notifications@github.com wrote:

Hello, thank you for this addon! I have some kind of problem, cannot get "AM/PM" to appear in my form. I have tried different themes, even tried different WordPress install, still no "AM/PM" ....any ideas for me to try?

Here is my short-code format:

Start Time (required)
[time time-start time-format:HH:mm tt step-minute:15]

I thought maybe js conflicts, but since trying in different themes, and even in a different install, maybe I am missing something else?

Would it be possible to post my dev site URL for anyone to see source code? If errors? Here is it: http://www.joegreenwood.com/testing-datepicker/

Please help? Thank you!

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/876

greenwoodonline commented 8 years ago

Oops, sorry, I pasted the wrong code snip... here is what I am actually using in that form on that page

<p>Date (required)<br />
[date* date-timecard date-format:mm/dd/yy] </p>

<p>Start Time (required)<br />
[time time-start time-format:hh:mm tt step-minute:15] </p>

<p>End Time (required)<br />
[time* time-end time-format:hh:mm tt step-minute:15] </p>

Sorry that I pasted the wrong code and wasted all of our time .. and thank you very much for looking at this. Thanks!