We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f4e01c commit 254e5fbCopy full SHA for 254e5fb
std/assembly/date.ts
@@ -77,9 +77,7 @@ export class Date {
77
let offsetHours = i32.parse(offsetParts[0]);
78
let offsetMinutes = offsetParts.length >= 2 ? i32.parse(offsetParts[1]) : 0;
79
offsetMs = (offsetHours * 60 + offsetMinutes) * MILLIS_PER_MINUTE;
80
- if (c == 45) {
81
- offsetMs = -offsetMs; // negative offset
82
- }
+ if (c == 45) offsetMs = -offsetMs; // negative offset
83
timeString = timeString.substring(0, i);
84
break;
85
}
0 commit comments