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

Datebox displays the week number incorrectly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.5
    • Fix Version/s: 8.5.1
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.5.1 S1

      Description

      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

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                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