Skip to content

Commit e3fe8f1

Browse files
committed
refactor: update Advent scheduler documentation to reflect time zone change
1 parent 014be19 commit e3fe8f1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/util/advent-scheduler.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,10 @@ async function checkAndCreateTodaysPost(client: Client, channelId: string): Prom
8888
const day = now.getUTCDate();
8989
const year = now.getUTCFullYear();
9090

91-
// Only run during December (month 11)
9291
if (month !== 11) {
9392
return;
9493
}
9594

96-
// Only run for days 1-25
9795
if (day < 1 || day > 25) {
9896
return;
9997
}
@@ -113,7 +111,7 @@ async function checkAndCreateTodaysPost(client: Client, channelId: string): Prom
113111

114112
/**
115113
* Initialize the Advent of Code scheduler
116-
* Runs every day at midnight UTC and checks if we should create a post
114+
* Runs every day at midnight UTC-5 and checks if we should create a post
117115
*/
118116
export function initializeAdventScheduler(client: Client, channelId: string): void {
119117
console.log('🎄 Initializing Advent of Code scheduler...');

0 commit comments

Comments
 (0)