Fix date calculation

This commit is contained in:
Quantum 2022-02-12 18:45:57 -05:00
parent 41a2009146
commit 83b99e06f7

View file

@ -29,7 +29,7 @@ class App extends React.Component<{}, AppState> {
constructor(props: {}) {
super(props);
const today = new Date();
const todayJDN = gregorianJDN(today.getFullYear(), today.getMonth() + 1, today.getDay());
const todayJDN = gregorianJDN(today.getFullYear(), today.getMonth() + 1, today.getDate());
const {year, month} = jdnFrench(todayJDN);
this.state = {