-
Notifications
You must be signed in to change notification settings - Fork 125
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
Back to 1899 #83
Comments
Hi, are you using localisation (the |
Hello michaeljones, I'm not using it. This is my config: Actually if I add "usel10n = True" the plugin doen't start from 1899, but my datetime format gets overwritten. |
Is there a way to reference the existing datepicker? like: $dateField.datepicker(). Or maybe implementing a callback after certain datepicker functions are executed? eg. after hiding it. This would let me fix my issues :) |
I'm not sure myself. I'd have to look into it further. Can I ask, does it behave better if you have |
Sure you can ask! that format works perfect. The point is the user should only set the date and the hour, but always leave minutes and seconds to 0. That's way I use the format Although if the form field is empty it does work, when it comes to editing an already saved datetime the widget must got broken or something and it opens the calendar in 1899. Initializing the widget with my custom format seems quite hard to handle for the module. Am I missing a more effective way of fixing the minutes to 0? |
@pisapapiros Did you ever find a fix for this? I'm also having this issue. |
Well, I have the same problem. |
Hello,
I've been working with this widget for a while and I found it very useful for my project.
When it comes to fill a new datetime field everything is ok. However, attempting to open the widget for edition, it jumps back to 1899. It works, but I want to launch it from the date shown in the field.
My widget settings:
dateTimeOptions = {
'format': 'dd.mm.yyyy hh:00', # I guess this is causing the problem
'autoclose': True,
'todayHighlight': True,
'minuteStep': 60,
'minView': 1,
'maxView': 2
}
I've tried to access to the widget from js, but I couldn't. Is it possible?
Thanks in advance
The text was updated successfully, but these errors were encountered: