Skip to content

Commit

Permalink
fix(content-sidebar): fix archive date formatting (#3748)
Browse files Browse the repository at this point in the history
* fix(content-sidebar): fix archive date formatting

* fix(content-sidebar): change conversion
  • Loading branch information
michalkowalczyk-box authored Nov 21, 2024
1 parent e967f6d commit ef3ea39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/elements/content-sidebar/SidebarFileProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const SidebarFileProperties = ({
return (
<LoadingIndicatorWrapper isLoading={isLoading}>
<ItemProperties
archivedAt={archiveDate && archiveDate * 1000}
archivedAt={archiveDate && Number(archiveDate)}
createdAt={file.content_created_at}
description={file.description}
descriptionTextareaProps={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('elements/content-sidebar/SidebarFileProperties', () => {
metadata: {
global: {
archivedItemTemplate: {
archiveDate: '1726832355',
archiveDate: '1726832355000',
},
},
},
Expand Down

0 comments on commit ef3ea39

Please sign in to comment.