From 2e1bd1ddec839a041e96d0f30c333d710ff68c54 Mon Sep 17 00:00:00 2001 From: Ajesh Sen Thapa Date: Tue, 5 Mar 2024 11:45:55 +0545 Subject: [PATCH] fix: updated dates data for 2081 --- CHANGELOG.md | 6 +++++- README.md | 2 +- nepali/date_converter.py | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64bf28b..5d5724c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # CHANGELOG -## v1.1.0 +## v1.1.1 + +- Updated dates data for 2081 + +## v1.1.0 (Jun 20, 2023) - Depreciated templatetags and added support from `django-nepali` package. - Updated README.md for `django-nepali` package. diff --git a/README.md b/README.md index 0729dbc..4d8c2c1 100644 --- a/README.md +++ b/README.md @@ -439,4 +439,4 @@ We have created a new Django package called [django-nepali](https://github.com/o ## Contribution -We appreciate feedback and contribution to this package. To get started please see our [contribution guide](CONTRIBUTION.md) +We appreciate feedback and contribution to this package. To get started please see our [contribution guide](./CONTRIBUTING.md) diff --git a/nepali/date_converter.py b/nepali/date_converter.py index 3683d84..a5039b4 100644 --- a/nepali/date_converter.py +++ b/nepali/date_converter.py @@ -78,7 +78,7 @@ class NepaliDateConverter: ((31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30), 365), ((31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30), 365), ((31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30), 365), - ((31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31), 366), + ((31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31), 366), # 2050 ((31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30), 365), ((31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30), 365), ((31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30), 365), @@ -98,7 +98,7 @@ class NepaliDateConverter: ((31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30), 365), ((31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30), 365), ((31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31), 366), - ((31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30), 365), + ((31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30), 365), # 2070 ((31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30), 365), ((31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30), 365), ((31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31), 366), @@ -108,8 +108,8 @@ class NepaliDateConverter: ((31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31), 366), ((31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30), 365), ((31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30), 365), - ((31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30), 365), - ((31, 31, 32, 32, 31, 30, 30, 30, 29, 30, 30, 30), 366), + ((31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30), 365), # 2080 + ((31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31), 366), ((30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30), 365), ((31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30), 365), ((31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30), 365),