Front End Submit, Events off by 1month
-
Hi, you’re plugin is producing date stamps with 1 month off.
It’s caused by the minified javascript you have, which submits to:
/wp-admin/admin-ajax.php?action=ai1ec_front_end_submit_eventwith the parameter:
name=”ai1ec_end_time”
2015-07-10 0:00:00for example. Which when input on the actual form, is NOT in July (7), but in June(6). This occurs in Chrome, and Firefox. The plugin doesn’t work (period) in IE9, so I can’t verify integrity on that browser (one of the reasons I have it installed on my machine).
But I am about to debug your javascript which is brutal because it’s minified, and you don’t offer unminified version.
And I’m letting you know it’s broken, and would appreciate any feedback on what might be causing this?
How is it that no one else has reported this problem?
My first thought was the browser culprit – where the months are either zero based index, or not. But you are converting it to unix timestamp, and I’m having to debug to locate where the actual issue is.
new Date() in js is not reliable. And you shouldn’t be using it unless you have browser detection.https://www.ads-software.com/plugins/all-in-one-event-calendar/
- The topic ‘Front End Submit, Events off by 1month’ is closed to new replies.