We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6d1851 commit 2946dabCopy full SHA for 2946dab
src/daily_task/mod.rs
@@ -13,7 +13,7 @@ pub async fn run_daily_task_at_midnight(pool: Arc<PgPool>) {
13
let now = chrono::Local::now().with_timezone(&Kolkata);
14
let next_midnight = (now + chrono::Duration::days(1))
15
.date_naive()
16
- .and_hms_opt(0, 0, 0)
+ .and_hms_opt(0, 30, 0)
17
.unwrap();
18
19
let duration_until_midnight = next_midnight.signed_duration_since(now.naive_local());
0 commit comments