mirror of
https://github.com/quantum5/qcal.git
synced 2025-04-24 17:51:57 -04:00
Fix date calculation
This commit is contained in:
parent
41a2009146
commit
83b99e06f7
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue