Skip to content

Commit

Permalink
Update questionnaireEngine.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHabenicht committed Apr 19, 2021
1 parent b0e598e commit c05bdeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion covquestions-js/src/questionnaireEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export class QuestionnaireEngine {
dateFormat?: LogicExpression
): string {
if (!timestamp || !dateFormat) {
return "";
return null;
}
const timestampInMilliseconds = parseInt(timestamp.toString()) * 1000;
return dayjs(timestampInMilliseconds).format(dateFormat.toString());
Expand Down

0 comments on commit c05bdeb

Please sign in to comment.