fix(dashboard-v2): use unambigous date format

This commit is contained in:
Michał Leszczyk 2022-04-13 08:30:31 +02:00
parent a392863cbe
commit bf55ca8fbe
No known key found for this signature in database
GPG Key ID: FA123CA8BAA2FBF4
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ const parseFileName = (fileName) => {
const formatItem = ({ size, name: rawFileName, uploadedOn, downloadedOn, ...rest }) => { const formatItem = ({ size, name: rawFileName, uploadedOn, downloadedOn, ...rest }) => {
const [name, type] = parseFileName(rawFileName); const [name, type] = parseFileName(rawFileName);
const date = dayjs(uploadedOn || downloadedOn).format("MM/DD/YYYY HH:MM"); const date = dayjs(uploadedOn || downloadedOn).format("MMM D, YYYY HH:MM");
return { return {
...rest, ...rest,

View File

@ -10,7 +10,7 @@ const parseFileName = (fileName) => {
const formatItem = ({ size, name: rawFileName, uploadedOn, downloadedOn, ...rest }) => { const formatItem = ({ size, name: rawFileName, uploadedOn, downloadedOn, ...rest }) => {
const [name, type] = parseFileName(rawFileName); const [name, type] = parseFileName(rawFileName);
const date = dayjs(uploadedOn || downloadedOn).format("MM/DD/YYYY HH:MM"); const date = dayjs(uploadedOn || downloadedOn).format("MMM D, YYYY HH:MM");
return { return {
...rest, ...rest,