Skip to content

Commit 2946dab

Browse files
committed
set daily task to run at 00:30
1 parent b6d1851 commit 2946dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/daily_task/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub async fn run_daily_task_at_midnight(pool: Arc<PgPool>) {
1313
let now = chrono::Local::now().with_timezone(&Kolkata);
1414
let next_midnight = (now + chrono::Duration::days(1))
1515
.date_naive()
16-
.and_hms_opt(0, 0, 0)
16+
.and_hms_opt(0, 30, 0)
1717
.unwrap();
1818

1919
let duration_until_midnight = next_midnight.signed_duration_since(now.naive_local());

0 commit comments

Comments
 (0)