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 16cbd4c commit e109493Copy full SHA for e109493
src/graphql/mutations.rs
@@ -1,8 +1,9 @@
1
use async_graphql::{Context, Object};
2
use ::chrono::Local;
3
use chrono::{NaiveDate, NaiveTime};
4
+use chrono_tz::Asia::Kolkata;
5
use sqlx::PgPool;
-use sqlx::types::chrono;
6
+use sqlx::types::chrono;
7
use std::sync::Arc;
8
use hmac::{Hmac,Mac};
9
use sha2::Sha256;
@@ -113,10 +114,7 @@ impl MutationRoot {
113
114
return Err(sqlx::Error::Protocol("HMAC verification failed".into()));
115
}
116
-
117
118
119
- let current_time = Local::now().time();
+ let current_time = Local::now().with_timezone(&Kolkata).time();
120
121
let attendance = sqlx::query_as::<_, Attendance>(
122
"
0 commit comments