diff --git a/Cargo.lock b/Cargo.lock index 682e928..38caeab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1175,7 +1175,7 @@ dependencies = [ [[package]] name = "reminder_rs" -version = "1.1.9" +version = "1.1.10" dependencies = [ "Inflector", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 5b59538..3cc297e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reminder_rs" -version = "1.1.9" +version = "1.1.10" authors = ["jellywx "] edition = "2018" diff --git a/src/commands/reminder_cmds.rs b/src/commands/reminder_cmds.rs index c013faf..7959720 100644 --- a/src/commands/reminder_cmds.rs +++ b/src/commands/reminder_cmds.rs @@ -1311,7 +1311,7 @@ async fn create_reminder, S: ToString + Type + Encode= unix_time { + if time >= unix_time - 10 { if time > unix_time + *MAX_TIME { Err(ReminderError::LongTime) } else {