Skip to content

Commit

Permalink
fix(bot): use game timezone for static strings
Browse files Browse the repository at this point in the history
fixes #1
  • Loading branch information
shayypy committed Dec 8, 2024
1 parent e9e17cd commit 3046a27
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/bot/src/commands/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const sendScheduleMessage = async (
month: "long",
day: subcommand === "day" ? "numeric" : undefined,
year: "numeric",
timeZone: games[0]?.timezone,
})}`;

const embed = new EmbedBuilder()
Expand Down
1 change: 1 addition & 0 deletions packages/bot/src/cron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ const runPickems = async (
month: "short",
day: "numeric",
year: "numeric",
timeZone: entryGames[0].timezone,
},
)}`,
auto_archive_duration: ThreadAutoArchiveDuration.OneWeek,
Expand Down
2 changes: 2 additions & 0 deletions packages/bot/src/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,7 @@ const runNotifications = async ({
month: "short",
day: "numeric",
year: "numeric",
timeZone: game.timezone,
},
)}`,
},
Expand Down Expand Up @@ -1316,6 +1317,7 @@ const runNotifications = async ({
month: "short",
day: "numeric",
year: "numeric",
timeZone: game.timezone,
},
);

Expand Down

0 comments on commit 3046a27

Please sign in to comment.