Juergen Posted January 17, 2016 Posted January 17, 2016 Hello @ all, yesterday I have upgraded to the latest devn 3.05 and now I have a problem with my datetime inputfields. The problem is that the slider always shows time from 1-12 hours instead of 1-24 hours per day. I have set H:i format for the input. Does anybody know where the problem could be. Best regards Jürgen
Mike Rockett Posted January 17, 2016 Posted January 17, 2016 Not sure why it's doing that - might be worth opening an issue on GitHub. Unrelated: Wow, I haven't seen that mouse cursor in years!
Juergen Posted January 17, 2016 Author Posted January 17, 2016 Before I will open an issue I would like to know if only I had this issue or others too.
Mike Rockett Posted January 17, 2016 Posted January 17, 2016 Just upgraded my workspace installation to 305 - same thing on my end. Safe to open an issue.
Juergen Posted January 17, 2016 Author Posted January 17, 2016 (edited) Thanks Mike Rockett. Issue is opened on Github (#1617). Best regards Edited January 17, 2016 by cstevensjr Added link
Juergen Posted January 17, 2016 Author Posted January 17, 2016 I know! I have posted it also for the select: https://github.com/ryancramerdesign/ProcessWire/issues/1617
matjazp Posted January 17, 2016 Posted January 17, 2016 Switching to old timepicker.js solves the problem, at least with slider
matjazp Posted January 17, 2016 Posted January 17, 2016 I replaced $timeFormatJS = str_replace('h24', 'h', $timeFormatJS); with $timeFormatJS = str_replace('hh24', 'HH', $timeFormatJS); in InputfieldDateTime.module (line 160). 3
Juergen Posted January 18, 2016 Author Posted January 18, 2016 Hello Matjzap, thanks for your solution. It works for both, the slider and the select. I have posted your solution on Github. Maybe it will be corrected after the next update. Best regards 1
matjazp Posted January 19, 2016 Posted January 19, 2016 Also comment this line: this.$timeObj[0].setSelectionRange(sPos, ePos); in jquery-ui-timepicker-addon.js to avoid focus bug (#1528). 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now