Juergen Posted January 17, 2016 Share 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 Link to comment Share on other sites More sharing options...
Mike Rockett Posted January 17, 2016 Share 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! Link to comment Share on other sites More sharing options...
Juergen Posted January 17, 2016 Author Share Posted January 17, 2016 Before I will open an issue I would like to know if only I had this issue or others too. Link to comment Share on other sites More sharing options...
Mike Rockett Posted January 17, 2016 Share Posted January 17, 2016 Just upgraded my workspace installation to 305 - same thing on my end. Safe to open an issue. Link to comment Share on other sites More sharing options...
Juergen Posted January 17, 2016 Author Share Posted January 17, 2016 (edited) Thanks Mike Rockett. Issue is opened on Github (#1617). Best regards Edited January 17, 2016 by cstevensjr Added link Link to comment Share on other sites More sharing options...
matjazp Posted January 17, 2016 Share Posted January 17, 2016 It also happens with select mode. Link to comment Share on other sites More sharing options...
Juergen Posted January 17, 2016 Author Share Posted January 17, 2016 I know! I have posted it also for the select: https://github.com/ryancramerdesign/ProcessWire/issues/1617 Link to comment Share on other sites More sharing options...
matjazp Posted January 17, 2016 Share Posted January 17, 2016 Switching to old timepicker.js solves the problem, at least with slider Link to comment Share on other sites More sharing options...
matjazp Posted January 17, 2016 Share 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 Link to comment Share on other sites More sharing options...
Juergen Posted January 18, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
matjazp Posted January 19, 2016 Share 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 Link to comment Share on other sites More sharing options...
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