added a tolerance to the natural processor so that 'now' works again
This commit is contained in:
parent
5d4bed30ae
commit
2a637ee9c9
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1175,7 +1175,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "reminder_rs"
|
name = "reminder_rs"
|
||||||
version = "1.1.9"
|
version = "1.1.10"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"Inflector",
|
"Inflector",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "reminder_rs"
|
name = "reminder_rs"
|
||||||
version = "1.1.9"
|
version = "1.1.10"
|
||||||
authors = ["jellywx <judesouthworth@pm.me>"]
|
authors = ["jellywx <judesouthworth@pm.me>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
@ -1311,7 +1311,7 @@ async fn create_reminder<T: TryInto<i64>, S: ToString + Type<MySql> + Encode<MyS
|
|||||||
.unwrap()
|
.unwrap()
|
||||||
.as_secs() as i64;
|
.as_secs() as i64;
|
||||||
|
|
||||||
if time >= unix_time {
|
if time >= unix_time - 10 {
|
||||||
if time > unix_time + *MAX_TIME {
|
if time > unix_time + *MAX_TIME {
|
||||||
Err(ReminderError::LongTime)
|
Err(ReminderError::LongTime)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user