Bootstrap Datepicker adds a day
Bootstrap Datepicker adds a day
rclayton
Posts: 10Questions: 3Answers: 0
Hi All;
I'm somewhat comforted to see my issue replicated here:
http://editor.datatables.net/examples/dates/datetime.html
Create a new record and the date field is updated with the current date/time (function(){return new Date();}}
When you click on the field to edit, DatePicker advances the date to the next day. Is there some way to force it back to current reality?
I appreciate any support y'all might provide,
Rob Clayton
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi Rob,
Could you let me know what timezone you are in please? It sounds like a timezone issue that I thought had been resolved.
It is unlikely that the fix in Editor would also address the Bootstrap Datepicker issue - although they are probably related (different code bases, but similar behaviour).
Thanks,
Allan
Central North America - Austin, TX USA
oh, I want to clarify that I'm only talking about the visual highlight of the day of the month is one day advanced in date picker (it's not changing the date in the form inappropriately).
use case you have a record set with the date for now() and you want to slide back a day this confuses the issue.
Thanks Allan
Hi Rob,
Thanks for the clarification. I think this is the same issue as reported here, which I've just committed a fix for. The fix will be in Editor 1.5.6, or the code modification required is in that thread if you want to use the fix immediately.
Regards,
Allan
Allan -- sorry that I was unable to test/respond sooner. I used the fix in the linked issue and yes, that did the trick. Performs just as I had hoped.
Something very pleasurable about editing your editor code and seeing the improvement in performance -- like a carburetor adjustment that actually makes the motor run better.
I do love what you've done with datatables+editor!
Many thanks!
Thanks for the kind words :-). Great to hear that fix does the business for you.
Regards,
Allan