Skip to content

Commit

Permalink
🔧 chore(Timeline): date with african update
Browse files Browse the repository at this point in the history
  • Loading branch information
MetalPrime committed Mar 21, 2024
1 parent 86ceba2 commit 3db554a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions marlo-web/src/main/webapp/crp/js/home/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function createDivActivities(activity, id){
}

const setStatus = (startDate, endDate) => {
const today = new Date();
const today = convertDateToAfricanDate(new Date());
const dateStatus = {
"Completed": today > new Date(endDate),
"In progress": today > new Date(startDate) && today < new Date(endDate),
Expand Down Expand Up @@ -276,8 +276,8 @@ function setWidth(amount) {
}

function setDistances(startDate,isToday, isJS) {
const today = new Date();
today.setDate(today.getDate()-1);
const today = convertDateToAfricanDate(new Date());
today.setDate(today.getDate());
let startofDay = new Date(today.getTime());
startofDay.setHours(0,0,0,0);
const porcentOfDay = ((today.getTime() - startofDay.getTime()) / (1000*60*60*24))
Expand Down

0 comments on commit 3db554a

Please sign in to comment.