added a tolerance to the natural processor so that 'now' works again
This commit is contained in:
1 parent
5d4bed30ae
commit
2a637ee9c9
3 files changed
+3
-3
No files matched your search
@@ -1311,7 +1311,7 @@ async fn create_reminder<T: TryInto<i64>, S: ToString + Type<MySql> + Encode<MyS
|
||||
.unwrap()
|
||||
.as_secs() as i64;
|
||||
|
||||
if time >= unix_time {
|
||||
if time >= unix_time - 10 {
|
||||
if time > unix_time + *MAX_TIME {
|
||||
Err(ReminderError::LongTime)
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user