fix calculation

This commit is contained in:
2023-07-11 19:29:08 +10:00
parent 329ff7c478
commit 759ab14899

View File

@@ -230,11 +230,7 @@
{{ selected.title }}
</p>
<p class="m-0">
{{
new SMDate(
selected.created_at,
).format("MMM dd, yyyy")
}}
{{ formatDate(selected.created_at) }}
</p>
<p class="m-0">
{{ bytesReadable(selected.size, 0) }}
@@ -913,6 +909,11 @@ const showFileBrowserTab = () => {
}, 50);
};
const formatDate = (date) => {
const smdate = new SMDate(date).format("MMM dd, yyyy");
return smdate;
};
// Get max upload size
api.get({
url: "",