Jump to content

Recommended Posts

Posted

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.

post-2257-0-22473500-1453044579_thumb.gi

Does anybody know where the problem could be.

Best regards Jürgen

Posted
I replaced 
$timeFormatJS = str_replace('h24', 'h', $timeFormatJS);
with
$timeFormatJS = str_replace('hh24', 'HH', $timeFormatJS);

in InputfieldDateTime.module (line 160).

  • Like 3
Posted

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

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...