Skip to content

Commit

Permalink
Don't change format in convertToLocalMomentTime (#15223)
Browse files Browse the repository at this point in the history
(cherry picked from commit 963e577)
  • Loading branch information
bjarnef authored and bergmania committed Dec 1, 2023
1 parent 528b7d3 commit da6aaa0
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 da6aaa0

Please sign in to comment.