경매시간 최소값 체크 수정
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
import { ONE_MINUTE_MS } from '../assets/data/adminConstants';
|
|
||||||
|
|
||||||
export const convertKTC = (dt, nation = true) => {
|
export const convertKTC = (dt, nation = true) => {
|
||||||
if (!dt) return "";
|
if (!dt) return "";
|
||||||
if (typeof dt !== "string") return "";
|
if (typeof dt !== "string") return "";
|
||||||
@@ -56,7 +54,3 @@ export const truncateText = (text) => {
|
|||||||
}
|
}
|
||||||
return text;
|
return text;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const msToMinutes = (ms) => {
|
|
||||||
return ms / ONE_MINUTE_MS;
|
|
||||||
}
|
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import { ONE_MINUTE_MS } from '../assets/data/adminConstants';
|
||||||
|
|
||||||
export const convertStartDateToISO = (date) => {
|
export const convertStartDateToISO = (date) => {
|
||||||
if (!date) return null;
|
if (!date) return null;
|
||||||
const startDate = new Date(date);
|
const startDate = new Date(date);
|
||||||
@@ -28,3 +30,7 @@ export const getTimeOnly = (dateString) => {
|
|||||||
hour12: false
|
hour12: false
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const msToMinutes = (ms) => {
|
||||||
|
return ms / ONE_MINUTE_MS;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user