Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problem with AM/PM times

    Hi, we are experiencing a problem with AM/PM times in Smartclient 10.0d

    You can reproduce it here:

    SmartClient_Explorer.html#timeItem

    In the top #1 element

    if you enter '4:00 a' the value is automatically converted to '4:00' (4:00 AM)
    if you enter '4:00 p' the value is automatically converted to '16:00' (4:00 PM)
    if you enter '4:00 aM' the value is automatically converted to '4:00' (4:00 AM)
    but if you enter '4:00 pM' the value is automatically converted to AM ['4:00' (4:00 AM)], while it should be converted to PM ['16:00' (4:00 PM)]


    I think the solution could be change the line in language\Time.js

    Code:
     if (!this._pmStrings) this._pmStrings = {p:true, P:true, pm:true, PM:true, Pm:true};
    by

    Code:
     if (!this._pmStrings) this._pmStrings = {p:true, P:true, pm:true, PM:true, Pm:true, pM:true};
    PS: I am aware that the issue could looks a bit nonsense or corner case, but we have real customers complaining about this

    Thanks and regards.
    Last edited by martintaal; 7 Jul 2014, 10:19.

    #2
    Hi, any news related to this topic?

    Thanks.

    Comment


      #3
      We've just fixed it - please retest with tomorrow's build.

      Comment

      Working...
      X