-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TaskEmailDue: Hours before due date possible? #16
Comments
yes. there are 24 hours in a day. therefore 1/24 is an hour. |
if you're looking for the logic, its here: SendEmailCreator/Action/TaskEmailDue.php Line 120 in 425fd4e
line 120, duration x 86400, so technically its in seconds. so if your duration was 1.041667, that would be a day and an hour. bear in mind, this duration is only checked according to your crontab. so its basically irrelevant, unless your cron runs enough to check this. most crons run once a day, its at that time it checks if the duration condition is met. so if your cron runs once a day at 9am, and your condition isn't met until 10am, well, it won't trigger until the next day at 9am, because its not going to check at 10am. |
Thank you for your explanation!
[...]
[...]
|
you seem to be on the right path, you could take it a step further, and offer an array of "duration in" days, hours, minutes, or seconds and then i.e., if day, multiply by 86400, hours by 3600, etc... |
Thank you for your advice, I will give it a try! |
I've tried out a little more and am now using the following function (with
|
I dont think there is any action I need to do on this, Stale |
First of all, thank you very much for your plugin, especially for the automatic action within the file
https://github.com/creecros/SendEmailCreator/blob/master/Action/TaskEmailDue.php
.I wonder if it is possible to include hours in the script instead of (or in addition to) days. Unfortunately, so far I have not been able to fully understand the logic of the script. I would therefore be grateful for any starting point!
The text was updated successfully, but these errors were encountered: