Editace fotek v modalu, lepsi datetime picker

This commit is contained in:
Michal Kváček
2023-07-10 08:12:48 +02:00
parent 3d88397d21
commit bbb21278fd
18 changed files with 274 additions and 103 deletions
-4
View File
@@ -44,12 +44,8 @@ export const parseDate = (datetimeStr, format = FORMAT_ISO) => {
}
export const formatDatetime = (datetime, format = FORMAT_DATETIME_LONG) => {
console.log("orignal ", datetime);
if (typeof datetime === 'string') {
datetime = parseDate(datetime);
}
console.log(datetime);
return date.formatDate(datetime, format);
}