Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bug: The calendar displays the month's first date as Sunday, except in the years 2080 and 2081 #21

Open
aj3sh opened this issue Dec 10, 2024 · 1 comment

Comments

@aj3sh
Copy link
Contributor

aj3sh commented Dec 10, 2024

I was exploring the demo site and came across this issue. Since the bug provides incorrect information to users, I reported it immediately. I haven't looked it in detail yet.

For years 2080 and 2081:
Screenshot 2024-12-10 at 10 34 22 PM

For other years:
Screenshot 2024-12-10 at 10 34 33 PM

@aj3sh
Copy link
Contributor Author

aj3sh commented Dec 10, 2024

Update:

It seems like the full monthly data are only available for 2080 and 2081.

/**
 * @description
 * This is the data for the months of the year.
 * The first element of the tuple is the number of days in each month.
 * Each month is an array of 3 elements. The first element is the number of days after which the month starts and the second element is the number of days in the month. The third element is the number of days after which next month starts.
 * The second element of the tuple is the total number of days in the year.
 * The data is from 2000 BS to 2099 BS.
 */
...
[
  [
    [0, 31, 0],
    [0, 31, 0],
    [0, 32, 0],
    [0, 31, 0],
    [0, 31, 0],
    [0, 31, 0],
    [0, 30, 0],
    [0, 29, 0],
    [0, 30, 0],
    [0, 29, 0],
    [0, 30, 0],
    [0, 30, 0],
  ],
  365,
], // 2079 BS
[
  [
    [5, 31, 6],
    [1, 32, 9],
    [5, 31, 6],
    [1, 32, 9],
    [5, 31, 6],
    [1, 30, 11],
    [3, 30, 9],
    [5, 30, 7],
    [0, 29, 13],
    [1, 29, 12],
    [2, 30, 10],
    [4, 30, 8],
  ],
  365,
], // 2080 BS
...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant