Skip to content

Commit

Permalink
minor: use constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint committed Nov 18, 2023
1 parent 5852393 commit b7577d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/assembly/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Date {
let offsetParts = timeString.substring(i+1).split(":");
let offsetHours = i32.parse(offsetParts[0]);
let offsetMinutes = offsetParts.length >= 2 ? i32.parse(offsetParts[1]) : 0;
offsetMs = (offsetHours * 60 + offsetMinutes) * 60000;
offsetMs = (offsetHours * 60 + offsetMinutes) * MILLIS_PER_MINUTE;
if (c == 45) {
offsetMs = -offsetMs; // negative offset
}
Expand Down

0 comments on commit b7577d3

Please sign in to comment.