fixed an issue with utc time. removed intents
This commit is contained in:
1 parent
23c6b3869e
commit
d8f42c1b25
2 files changed
+2
-8
No files matched your search
@@ -76,7 +76,7 @@ impl ReminderBuilder {
|
||||
|
||||
match queried_time.utc_time {
|
||||
Some(utc_time) => {
|
||||
if utc_time < (Utc::now() + Duration::seconds(60)).naive_local() {
|
||||
if utc_time < (Utc::now() - Duration::seconds(60)).naive_local() {
|
||||
Err(ReminderError::PastTime)
|
||||
} else {
|
||||
sqlx::query!(
|
||||
|
||||
Reference in new issue
Block a user