Skip to content

Commit 40446da

Browse files
authored
fix Temporal usage
1 parent f4133d5 commit 40446da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/monthly.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ if (isNaN(year)) {
1919
} else {
2020
const ym = Temporal.PlainDateTime.from({
2121
year,
22-
month
22+
month,
23+
day: 1
2324
});
2425
from = ym.toZonedDateTime(timeZone)
2526
}

0 commit comments

Comments
 (0)