Skip to content

Commit

Permalink
Fix failure of yarn test-unit at 9 hours offset
Browse files Browse the repository at this point in the history
  • Loading branch information
sakurai-youhei committed May 5, 2024
1 parent 079cce4 commit a6ec47c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/format/format_date.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,5 @@ function formatTimezoneOffset(offset: number) {
offset = Math.abs(offset);
const hrs = Math.floor(offset / 60);
const mins = offset - hrs * 60;
return `${sign}${hrs < 9 ? '0' : ''}${hrs}:${mins < 9 ? '0' : ''}${mins}`;
return `${sign}${hrs <= 9 ? '0' : ''}${hrs}:${mins < 9 ? '0' : ''}${mins}`;
}

0 comments on commit a6ec47c

Please sign in to comment.