Cron-Implementation: Tested!
This commit is contained in:
parent
412f9ed431
commit
25a1505fd0
1 changed files with 3 additions and 4 deletions
|
|
@ -47,10 +47,9 @@ class App extends React.Component<any,any> {
|
||||||
|
|
||||||
}
|
}
|
||||||
CheckCron(lastCron: string) {
|
CheckCron(lastCron: string) {
|
||||||
let cronDate = new Date(lastCron).getDate();
|
let cronDate = new Date(lastCron);
|
||||||
let now = new Date().getDate();
|
let now = new Date();
|
||||||
console.log(cronDate, now);
|
if (cronDate.getDate() != now.getDate() || (cronDate.getMonth() != now.getMonth() || cronDate.getFullYear() != now.getFullYear())) {
|
||||||
if (cronDate != now) {
|
|
||||||
return(
|
return(
|
||||||
<div className="cron">
|
<div className="cron">
|
||||||
<div id="cronMessage"> Welcome back! Please check your tasks for the last day and hit continue to get your daily rewards. </div>
|
<div id="cronMessage"> Welcome back! Please check your tasks for the last day and hit continue to get your daily rewards. </div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue