the regular function for time is the following
Code: Select all
$('.time').datetimepicker({
language: '{{ datepicker }}',
pickDate: false,
});
Code: Select all
moment().add(1, 'hour')
opencart-3.0.3.8
Thank You
Code: Select all
$('.time').datetimepicker({
language: '{{ datepicker }}',
pickDate: false,
});
Code: Select all
moment().add(1, 'hour')
Should'nt it be hours ?OpenCode3.0 wrote: ↑Sun Nov 06, 2022 2:21 amI try theto the pickTime but doesn't work is there a way I'm sure there is but can anyone point me to or show me how is done?Code: Select all
moment().add(1, 'hour')
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
@ OSWorX - Thanks for the response...OSWorX wrote: ↑Sun Nov 06, 2022 1:22 pmShould'nt it be hours ?OpenCode3.0 wrote: ↑Sun Nov 06, 2022 2:21 amI try theto the pickTime but doesn't work is there a way I'm sure there is but can anyone point me to or show me how is done?Code: Select all
moment().add(1, 'hour')
See e.g. https://github.com/Eonasdan/tempus-dominus/issues/1548
Code: Select all
$('.time').datetimepicker({
language: '{{ datepicker }}',
pickDate: false,
timeFormat: 'hh:mm tt',// try this doesn't work
minDate: moment().add(1, 'hours'),// the I try this doesn't work
toHourtimepicker: moment().add(1, 'hours'),// the I try this doesn't work
});
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Users browsing this forum: Semrush [Bot] and 20 guests