Skip to content

Commit

Permalink
Update schedular.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Taranjeet105 authored Jan 5, 2022
1 parent 7e0921e commit e8a84f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions middleware/schedular.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ function triggerSchedular(){
let dateString=doc.message.date+" "+doc.message.time+" "+doc.message.isAM;
// console.log(dateString)
let rem=new Date(dateString);
rem.setHours(rem.getHours()+5);
rem.setMinutes(rem.getMinutes()+30);
rem.setHours(rem.getHours()-5);
rem.setMinutes(rem.getMinutes()-30);
// console.log(rem.toDateString())
let now=new Date()
let diff=(rem-now)/(1000*60)
Expand Down

0 comments on commit e8a84f0

Please sign in to comment.