Skip to content

Commit

Permalink
Don't change format in convertToLocalMomentTime (#15223)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarnef authored Nov 16, 2023
1 parent e5c8627 commit 963e577
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, format);
dateVal = this.convertToLocalMomentTime(date, serverOffset);
} else {
dateVal = moment(date, parsingFormat);
}
Expand Down

0 comments on commit 963e577

Please sign in to comment.