Исправления багов, мелкий рефакторинг
This commit is contained in:
@@ -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])));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user