amsul / pickadate.js

The mobile-friendly, responsive, and lightweight jQuery date & time input picker.
http://amsul.ca/pickadate.js
MIT License
7.7k stars 1.02k forks source link

startTime appears to be a ****** reserved word #1195

Closed stevehomer closed 4 years ago

stevehomer commented 4 years ago

For startDate I use:

      $('.datepicker').pickadate(
          {
              format: 'ddd, dd mmm, yyyy',
              formatSubmit: 'mm/dd/yyyy',
              hiddenSuffix: ''
          })

works fine.

But startTime:

      $('.timepicker').pickatime(
          {
              // format: 'H:i A',
              formatSubmit: 'H:i',
              hiddenSuffix: '',
          }
      )

fails.

I tried adding xx as a suffix and that worked fine but any thing like name=startT with suffix ime would not pass a value through.

So I either have to use an unfriendly time format for users, fiddle about with it PHP on arrival or fiddle about in jQuery to convert.

In passing, the time scroll works fine on touch screens but on a PC/Mac etc it is a bit of a pain. Any chance of perhaps one solution for screens of a certain size and different for others.

Finally thanks for a pretty stable timedate solution. Been through lots of others and they all seem to need fine tuning of jQuery version, Bootstrap version or something else.

ATB Steve

DanielRuf commented 4 years ago

Hi @stevehomer,

I do not really understand this:

I tried adding xx as a suffix and that worked fine but any thing like name=startT with suffix ime would not pass a value through.

Can you provide a codepen?

stevehomer commented 4 years ago

Sorry this was some time ago and have moved and do not remember what the problem was.

All the best Steve

On Sat, Feb 1, 2020 at 11:11 AM Daniel Ruf notifications@github.com wrote:

Hi @stevehomer https://github.com/stevehomer,

I do not really understand this:

I tried adding xx as a suffix and that worked fine but any thing like name=startT with suffix ime would not pass a value through.

Can you provide a codepen?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/amsul/pickadate.js/issues/1195?email_source=notifications&email_token=ABYD5Q6GJRQ6WKUHNVFEERTRAVKHVA5CNFSM4JOFBUNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKQ2ONY#issuecomment-581019447, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYD5Q32IFGNTJIWCA5NGWLRAVKHVANCNFSM4JOFBUNA .

--

Tel: 07555 49 89 55 +(44)7555 49 89 55

DanielRuf commented 4 years ago

Thanks for the feedback. Closing as there is not much that we can do here now.