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

Datebox displays the week number incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.1
    • 8.0.5
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.5.1 S1
    • None

      Steps to Reproduce

      1. load the zul below

      <datebox weekOfYear="true" />
      

      Current Result

      The 1st Thursday is not in the 1st week.

      Expected Result

      verified it with https://www.timeanddate.com/calendar/?year=2012&country=1&wno=1

      Debug Info

      • if you set the first day of the week to Monday, then the week number is correct. It matches the result from timeanddate.com.
      • week number definition: https://www.epochconverter.com/weeknumbers. There are 3 week numbering systems: ISO week date standard (ISO-8601), US, Islamic.
      • check 2016/1/1

        1. 2017.png
          2017.png
          19 kB
        2. 2012.png
          2012.png
          18 kB

            bobpeng bobpeng
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 3 days
                3d
                Remaining:
                Time Spent - 1 day, 4 hours Remaining Estimate - 1 day, 4 hours
                1d 4h
                Logged:
                Time Spent - 1 day, 4 hours Remaining Estimate - 1 day, 4 hours
                1d 4h