Skip to content

Commit 2e87dcf

Browse files
authored
Merge pull request #216 from ezsystems/EZP-30986-publication-and-modification-dates-in-subitems-are-different
EZP-30986: Publication and Modification Dates in Sub-items are incorrect
2 parents 745b4e2 + d2acb42 commit 2e87dcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/sub-items/components/table-view/table.view.item.component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ export default class TableViewItemComponent extends PureComponent {
187187
renderModifiedCell() {
188188
const { modificationDate } = this.props.item.content._info;
189189

190-
return <div className="c-table-view-item__text-wrapper">{formatShortDateTime(new Date(modificationDate.timestamp))}</div>;
190+
return <div className="c-table-view-item__text-wrapper">{formatShortDateTime(new Date(modificationDate.timestamp * 1000))}</div>;
191191
}
192192

193193
renderPublishedCell() {
194194
const { publishedDate } = this.props.item.content._info;
195195

196-
return <div className="c-table-view-item__text-wrapper">{formatShortDateTime(new Date(publishedDate.timestamp))}</div>;
196+
return <div className="c-table-view-item__text-wrapper">{formatShortDateTime(new Date(publishedDate.timestamp * 1000))}</div>;
197197
}
198198

199199
renderContentTypeCell() {

0 commit comments

Comments
 (0)