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

select a date with time produces an invalid result under locale pt

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 10.1.0
    • 9.6.4
    • None
    • Security Level: Jimmy

      Steps to Reproduce

      <datebox cols="30" format="d 'de' MMMM y HH:mm:ss" onCreate="self.value = new Date()" locale="pt" />
      

      1. select any date

      Current Result


      You must specify a date. Format: d de MMMM y HH:mm:ss

      Expected Result

      no error

      Debug

      • the previous fix in ZK-5423 doesn't consider the case that a month string might contain a literal e.g. 'dezembro' contains 'de'. For this case, we can remove that 'de' from 'dezembro'

      Workaround

      zk-5475.js

        1. error.png
          error.png
          10 kB
        2. zk-5475.js
          15 kB

            jumperchen jumperchen
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: