Commit 4b27f6e

Andrew J.Swan <ajs.blackhole@gmail.com>
2024-02-14 10:59:19
Fix commit time badges (#52)
1 parent 4f50c1c
Changed files (1)
src
all-badges
time-of-commit
src/all-badges/time-of-commit/time-of-commit.ts
@@ -15,7 +15,7 @@ export default new (class implements BadgePresenter {
       for (const commit of repo.commits) {
         const date = new Date(commit.committedDate)
 
-        date.setHours(date.getUTCHours() + timezoneOffset)
+        date.setUTCHours(date.getUTCHours() + timezoneOffset)
 
         if (date.getUTCHours() >= 4 && date.getUTCHours() < 6) {
           morningCommits.push(commit)