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

enter am but Datebox converts it to PM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.2
    • 8.0.5, 8.5.0
    • None
    • Security Level: Jimmy
    • None

      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]);

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

              Created:
              Updated:
              Resolved:

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