mirror of
https://github.com/quantum5/qcal.git
synced 2025-07-27 03:34:11 -04:00
gcal: fix default month selection
This commit is contained in:
parent
1c6802ecf7
commit
4d24f1188e
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import {Calendar} from './Calendar';
|
||||
import {JulianMonth} from '@common/gregorian';
|
||||
import {DayChanger} from '@common/ui/DayChanger';
|
||||
import {jdnJulian} from '@common/julian';
|
||||
import {jdnGregorian} from '@common/gregorian';
|
||||
import MonthBasedApp from '@common/ui/MonthBasedApp';
|
||||
|
||||
export default class App extends MonthBasedApp<number, JulianMonth> {
|
||||
|
@ -13,7 +13,7 @@ export default class App extends MonthBasedApp<number, JulianMonth> {
|
|||
}
|
||||
|
||||
override defaultSelector(todayJDN: number) {
|
||||
const [year, month] = jdnJulian(todayJDN);
|
||||
const [year, month] = jdnGregorian(todayJDN);
|
||||
return {year, month};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue