-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initialValue cannot parse time correctly #172
Comments
@ShariatPanah |
@babakhani i have the same problem. i test many combination of input field value for showing initial date and time but i cant adjust time properly. what format should i use for this purpose ? |
@ShariatPanah i find solution with help of php. if you set the value attribute of field with this php method, this library can convert it to formatted value in persian : |
سلام
در فرم ایجاد چنانچه اینپوت دیت تایم پیکر خالی باشد بطور صحیح تاریخ و ساعت را برای انتخاب نمایش میدهد اما در فرم ویرایش که اینپوت مقدار دارد تاریخ نمایش داده برای انتخاب نیز اشتباه نمایش داده میشود (سال ۷۷5 و ماه و روز نامرتبتی برای انتخاب نمایش داده میشود)
طبق عکس در لینک زیر
https://screenshots.firefox.com/7GcvWkMbAANrrmEf/instabot.dev
آیا امکانش هست که درصورت پر بودن این اینپوت نیز تاریخ کنونی و یا همان تاریخی که پر شده نمایش داده شود؟
نحوه ی init کردن هم طبق کد زیر :
$('#datepicker1').pDatepicker({ initialValue: false, format: 'YYYY/MM/DD HH:mm:ss', autocomplete :'off', autoClose: true, minDate: new persianDate().valueOf(), timePicker: { enabled: true, meridiem: { enabled: true } } });
The text was updated successfully, but these errors were encountered: