Skip to content

Commit

Permalink
Pass in format parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarnef authored and emmagarland committed Oct 6, 2023
1 parent d3ceeb0 commit 46b0833
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function dateHelper() {
const localOffset = new Date().getTimezoneOffset();
const serverTimeNeedsOffsetting = -serverOffset !== localOffset;
if (serverTimeNeedsOffsetting) {
dateVal = this.convertToLocalMomentTime(date, serverOffset);
dateVal = this.convertToLocalMomentTime(date, serverOffset, format);
} else {
dateVal = moment(date, parsingFormat);
}
Expand Down

0 comments on commit 46b0833

Please sign in to comment.