Skip to content

Commit 8a90d46

Browse files
Fix failure of yarn test-unit at 9 hours offset (#7734)
1 parent f7b46ab commit 8a90d46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/format/format_date.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,5 @@ function formatTimezoneOffset(offset: number) {
160160
offset = Math.abs(offset);
161161
const hrs = Math.floor(offset / 60);
162162
const mins = offset - hrs * 60;
163-
return `${sign}${hrs < 9 ? '0' : ''}${hrs}:${mins < 9 ? '0' : ''}${mins}`;
163+
return `${sign}${hrs <= 9 ? '0' : ''}${hrs}:${mins <= 9 ? '0' : ''}${mins}`;
164164
}

0 commit comments

Comments
 (0)