Skip to content

Commit

Permalink
fix: hh:mm time format ambiguous (DHIS2-16717) (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott authored Jun 7, 2024
1 parent c1b3eba commit b5f3df2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/integration/table.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const previousYear = getPreviousYearStr()
const mainDimensions = [
{
label: trackerProgram[DIMENSION_ID_LAST_UPDATED],
value: '2023-01-04 02:04',
value: '2023-01-04 14:04',
},
{ label: 'Created by', value: 'Traore, John (admin)' },
{ label: 'Last updated by', value: 'Traore, John (admin)' },
Expand Down
2 changes: 1 addition & 1 deletion src/modules/tableValues.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const getFormattedCellValue = ({ value, header = {}, visualization = {} }) => {
moment(value).format(
header.name === headersMap[DIMENSION_ID_LAST_UPDATED] ||
header.valueType === VALUE_TYPE_DATETIME
? 'yyyy-MM-DD hh:mm'
? 'yyyy-MM-DD HH:mm'
: 'yyyy-MM-DD'
)
)
Expand Down

0 comments on commit b5f3df2

Please sign in to comment.