-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Datepicker doubles up entry of year #133
Comments
Could be related to the pref presets in the drop-down menu |
…ll working properly. Issue must be elsewhere.
He saw that in the calendar plugin I'm sure. Mine are doubling the year too but only in that plugin, news and other datepickers are fine. |
Absolutely right. I've had a play as well, and can't see where the problem lies. Only clue is that 'add event' operates in userLand (which is OK) while the other instances (which appear to be wrong) are in adminLand. Operates incorrectly in mailout as well. |
@e107steved - Here's my test code. Something very strange happening in the JS - but I haven't found any mention of it online. |
Definitely something to do with the difference between user and admin - I've just taken your test code, wrapped it in the two sorts of header and footer, and it misbehaves in admin mode. |
This screenshot is from the front-end. So both must have a problem. |
Interesting! Please note that on my front-end, 4 of the items return December dates instead of April. |
I'd missed your December dates - I was focussing on the year display! Here's my test code: I got some March dates, but on the admin side. I'm using Bootstrap, pretty much set to defaults. Just to be clear, in my installation, line 113 of date_handler.php says:
|
This was solved for all areas? Calendar and Mailout datepickers don't double up anymore; Calendar is a 4 digit year, the Mailout datepicker is a 2 digit year. |
There are still issues.. see: uxsolutions/bootstrap-datepicker#392 |
I checked the banner plugin and I cannot see any issues. No more buggy behaviour as far as I can see. |
Seems good here |
…ed and should now be working with times also. eg. 7:30PM
Select a date using the datetimepicker (e.g. in event calendar), and the year is entered twice:
e.g. '20132013-03-04'
or '18-03-20132013'
dependent on selected display format
(Seems to only be a problem with 100% numeric formats).
Fixed by changing line 113 of date_handler.php back to 'yy' - but then formats using words for month or day show year as 2 digits, which was the reason line 113 was changed in the first place!
Looks as if it might be a bug in the jquery code.
The text was updated successfully, but these errors were encountered: