From 293b53a2b5734d566c64f59f49cd1b00b28a39b3 Mon Sep 17 00:00:00 2001 From: Mohsen Alyafei <51336583+MohsenAlyafei@users.noreply.github.com> Date: Tue, 2 Jan 2024 11:38:56 +0300 Subject: [PATCH] Update core.ts Updated entry point of cal in total weeks functiom --- src/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.ts b/src/core.ts index 0157124..ca49f27 100644 --- a/src/core.ts +++ b/src/core.ts @@ -75,7 +75,7 @@ export function hwcToString(array: [number, number, number]) { * First get 3rd day before the year end (either 26th or 27th of month 12). * Then get the week number for that day using toHWCDate() being the last week of the HWC year. ********************************************************/ -export function totalHWCWeeks(y: number, { fromCal = 'islamic-umalqura' } = {}) { +export function totalHWCWeeks(y: number, fromCal = 'islamic-umalqura') { const d = Temporal.PlainDate.from({ year: y, month: 12, day: 30, calendar: fromCal }).subtract({ days: 3 }) return toHWCDate(y, 12, d.day)[1] }