Skip to content

Commit

Permalink
set daily task to run at 00:30
Browse files Browse the repository at this point in the history
  • Loading branch information
ivinjabraham committed Feb 13, 2025
1 parent b6d1851 commit 2946dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daily_task/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub async fn run_daily_task_at_midnight(pool: Arc<PgPool>) {
let now = chrono::Local::now().with_timezone(&Kolkata);
let next_midnight = (now + chrono::Duration::days(1))
.date_naive()
.and_hms_opt(0, 0, 0)
.and_hms_opt(0, 30, 0)
.unwrap();

let duration_until_midnight = next_midnight.signed_duration_since(now.naive_local());
Expand Down

0 comments on commit 2946dab

Please sign in to comment.