Skip to content

Commit 254e5fb

Browse files
Update std/assembly/date.ts
Co-authored-by: CountBleck <[email protected]>
1 parent 1f4e01c commit 254e5fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: std/assembly/date.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ export class Date {
7777
let offsetHours = i32.parse(offsetParts[0]);
7878
let offsetMinutes = offsetParts.length >= 2 ? i32.parse(offsetParts[1]) : 0;
7979
offsetMs = (offsetHours * 60 + offsetMinutes) * MILLIS_PER_MINUTE;
80-
if (c == 45) {
81-
offsetMs = -offsetMs; // negative offset
82-
}
80+
if (c == 45) offsetMs = -offsetMs; // negative offset
8381
timeString = timeString.substring(0, i);
8482
break;
8583
}

0 commit comments

Comments
 (0)