Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3792

enter am but Datebox converts it to PM

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.5, 8.5.0
    • Fix Version/s: 8.5.2
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      Steps to Reproduce

      1. run the zul

      <datebox format="KK:mm a" lenient="true"/>
      

      2. enter 03:00 am, press tab

      Current Result

      Datebox shows 03:00 PM

      Expected Result

      03:00 AM

      Debug Info

      Root Cause

      • Datebox only compares with uppercase string "AM"

      Workaround

      • see attached js
        isAM = token.toUpperCase().startsWith(localizedSymbols.APM[0]);

        Attachments

          Activity

            People

            • Assignee:
              klyvechen klyvechen
              Reporter:
              hawk hawk
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified Time Not Required
                Not Specified