경매시간 최소값 체크 수정

This commit is contained in:
2025-02-13 16:23:34 +09:00
parent 30ec5eabe5
commit c375bc1164
2 changed files with 8 additions and 8 deletions

View File

@@ -1,5 +1,3 @@
import { ONE_MINUTE_MS } from '../assets/data/adminConstants';
export const convertKTC = (dt, nation = true) => {
if (!dt) return "";
if (typeof dt !== "string") return "";
@@ -55,8 +53,4 @@ export const truncateText = (text) => {
return text.substring(0, maxLength) + '...';
}
return text;
};
export const msToMinutes = (ms) => {
return ms / ONE_MINUTE_MS;
}
};

View File

@@ -1,3 +1,5 @@
import { ONE_MINUTE_MS } from '../assets/data/adminConstants';
export const convertStartDateToISO = (date) => {
if (!date) return null;
const startDate = new Date(date);
@@ -27,4 +29,8 @@ export const getTimeOnly = (dateString) => {
second: '2-digit',
hour12: false
});
};
};
export const msToMinutes = (ms) => {
return ms / ONE_MINUTE_MS;
}