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
by
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.
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};
Code:
if (!this._pmStrings) this._pmStrings = {p:true, P:true, pm:true, PM:true, Pm:true, pM:true};
Thanks and regards.
Comment