Исправления багов, мелкий рефакторинг

This commit is contained in:
Book Pauk
2022-10-31 21:04:36 +07:00
parent 548f18430d
commit 0e4344995c
4 changed files with 14 additions and 16 deletions

View File

@@ -138,4 +138,9 @@ export function dateFormat(date, format = 'DD.MM.YYYY') {
export function sqlDateFormat(date, format = 'DD.MM.YYYY') {
return moment(date, 'YYYY-MM-DD').format(format);
}
}
export function isManualDate(date) {
return date && (date[0] == ',' || (isDigit(date[0]) && isDigit(date[1])));
}