skyrun
Active Member
i have a form that has a date on it. the form has an php plugin that 'on after process' does something with the date (like create a csv file or pdf file or display pdf report for some examples). you can simulate by putting a php plugin on the form that just has in the php code box
used to be that you could look at whatever the results were (pdf report in my use-case) and then press 'back' on the browser and the form was there intact with the 'sticky' values and you could change the date and run the report again with the new date.
with the new date element plugin, the values on the form except for the date are still sticky, however the date values change (no matter what format you choose) to be format yyyy-mm-dd hh:mm:ss. the yyyy-mm-dd is the correct date, but wrong format. meaning if the date in m/d/y format was 02/10/16, it will be 2016-02-10 00:00:00 after you press back. (i'm using chrome in case that matters)
now when you press the calendar button (which is expecting m/d/y as the element says) it looks at the mis-formatted date and sets some seemingly random date hundreds of years in the future or past.
Code:
echo 'hello world'; exit;
used to be that you could look at whatever the results were (pdf report in my use-case) and then press 'back' on the browser and the form was there intact with the 'sticky' values and you could change the date and run the report again with the new date.
with the new date element plugin, the values on the form except for the date are still sticky, however the date values change (no matter what format you choose) to be format yyyy-mm-dd hh:mm:ss. the yyyy-mm-dd is the correct date, but wrong format. meaning if the date in m/d/y format was 02/10/16, it will be 2016-02-10 00:00:00 after you press back. (i'm using chrome in case that matters)
now when you press the calendar button (which is expecting m/d/y as the element says) it looks at the mis-formatted date and sets some seemingly random date hundreds of years in the future or past.