Skip to content

Commit

Permalink
Work in UTC time
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathankeebler committed Dec 8, 2022
1 parent 3a0b198 commit 9fb45ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/formulas.js
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ function day(date) {
if (!date.getDate) {
throw Error('#VALUE!');
}
var day = date.getDate();
var day = date.getUTCDate();
if (isNaN(day)) {
throw Error('#VALUE!');
}
Expand All @@ -804,7 +804,7 @@ function month(date) {
if (!date.getMonth) {
throw Error('#VALUE!');
}
var month = date.getMonth();
var month = date.getUTCMonth();
if (isNaN(month)) {
throw Error('#VALUE!');
}
Expand All @@ -815,7 +815,7 @@ function year(date) {
if (!date.getFullYear) {
throw Error('#VALUE!');
}
var year = date.getFullYear();
var year = date.getUTCFullYear();
if (isNaN(year)) {
throw Error('#VALUE!');
}
Expand Down

0 comments on commit 9fb45ec

Please sign in to comment.