Skip to content

Commit

Permalink
Fix date after ashar 2081
Browse files Browse the repository at this point in the history
No of days in ashar brought problem for months to come.
I have verified changes for this year i.e. 2081. However, will push changes if corrected for year 2082 and more.
  • Loading branch information
shivathapaa authored Jun 27, 2024
1 parent eb2e9a2 commit 523c150
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ object NepaliDateUtils {
daysInMonthMap.put(2078, intArrayOf(0, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30))
daysInMonthMap.put(2079, intArrayOf(0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30))
daysInMonthMap.put(2080, intArrayOf(0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30))
daysInMonthMap.put(2081, intArrayOf(0, 31, 31, 32, 32, 31, 30, 30, 30, 29, 30, 30, 30))
daysInMonthMap.put(2081, intArrayOf(0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31))
daysInMonthMap.put(2082, intArrayOf(0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30))
daysInMonthMap.put(2083, intArrayOf(0, 31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30))
daysInMonthMap.put(2084, intArrayOf(0, 31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30))
Expand Down Expand Up @@ -287,7 +287,7 @@ object NepaliDateUtils {
startWeekDayMonthMap.put(2078, intArrayOf(0, 4, 7, 3, 6, 3, 6, 2, 4, 5, 7, 1, 3))
startWeekDayMonthMap.put(2079, intArrayOf(0, 5, 1, 4, 1, 4, 7, 3, 5, 6, 1, 2, 4))
startWeekDayMonthMap.put(2080, intArrayOf(0, 6, 2, 6, 2, 6, 2, 4, 6, 1, 2, 3, 5))
startWeekDayMonthMap.put(2081, intArrayOf(0, 7, 3, 6, 3, 7, 3, 5, 7, 2, 3, 5, 7))
startWeekDayMonthMap.put(2081, intArrayOf(0, 7, 3, 7, 3, 7, 3, 5, 7, 2, 3, 5, 6))
startWeekDayMonthMap.put(2082, intArrayOf(0, 2, 4, 1, 4, 1, 4, 6, 1, 3, 4, 6, 1))
startWeekDayMonthMap.put(2083, intArrayOf(0, 3, 6, 2, 6, 2, 5, 7, 2, 4, 5, 7, 2))
startWeekDayMonthMap.put(2084, intArrayOf(0, 4, 7, 3, 7, 3, 6, 1, 3, 5, 6, 1, 3))
Expand Down Expand Up @@ -469,4 +469,4 @@ internal fun Int.toDigits(base: Int = 10): List<Int> = sequence {
yield(n % base)
n /= base
}
}.toList()
}.toList()

0 comments on commit 523c150

Please sign in to comment.