This commit is contained in:
Cindy Chang
2024-06-18 09:25:13 +08:00
parent 94dbe1dee6
commit 6c9322d1bc
3 changed files with 4 additions and 9 deletions

View File

@@ -44,7 +44,6 @@ const getTimeUnitAndValueToUse = (secondToDecide) => {
timeValue: secondToDecide / minutes,
};
} else {
console.log('less than one minutes final case timeValue:', secondToDecide, dd, hh, mm);
return {
unitToUse: "s",
timeValue: secondToDecide,
@@ -241,7 +240,7 @@ export function getDateLabelByMinMaxDate(date, maxDate, minDate) {
return moment(date).format('YYYY/MM/DD');
}
else if (diffDays > 1) {
return moment(date).format('MM/DD');
return moment(date).format('YYYY/MM/DD');
}
else if (diffHours > 1) {
return moment(date).format('MM/DD hh:00');