Blesta Addons Posted April 2, 2016 Report Posted April 2, 2016 How Blesta calcul the day in Suspend Services Days After Due ? i have Suspend Services Days After Due 1 Day . and : service A created in 31-03 ; invoice due date31-03 service B created in 01-04 ; invoice due date 01-04 the Service A was suspended in 02-04 00:00 . Service B stil Active in 02-04 . as i see it would be suspended in 03-04 00:00 . i ask how blesta calcul this ? 31 + 1d = 01-04 . and as i have sent cron for suspension run in 00:00 , then the service should be suspended in 01-04 00:00 . is blesta calcul 24 hours or by day calender ? for me suspend service after 1 day , mean the next day calender don't matter the hours . if i create service in 31-03-2016 23:59 . next day is 01-04 00:00 . another issue also from our experience in v2 .
0 activa Posted April 2, 2016 Report Posted April 2, 2016 today i have looked to this in profound, we have never make attention to this . and yes, the suspended service are always 1 day from the day it should be suspended . from our system , invoice due date 01-04-2016 , the service still active, and i suppose it will be suspended today 03-04-2016 at 00:00 . and that is not ideal for us . client pay 1 year , the service should be suspended at the selected time set in cron settings for the next day . if service due date is 01-04-2016 , so next calendar day is 02-04-2016 . the time setting for running cron is 00:00 , the service should be suspended in 02-04-2016 at 00:00 .
0 Blesta Addons Posted April 2, 2016 Author Report Posted April 2, 2016 i will not talk more , pictures will talk service renew date 1-4 , invoice due date 1-4 . we are now in 2-4 . these service will be suspended in 3-4 . case 1 case 2 settings i think this is enough . either i have misunderstand the +1day , either the words are not well describe the situation . i will not repeat that v2 has the same setting and it suspend it in 2-4 !!!!
0 Michael Posted April 3, 2016 Report Posted April 3, 2016 In my opinion they should be suspended on the 2nd of April which is one day after.
0 Tyson Posted April 4, 2016 Report Posted April 4, 2016 is blesta calcul 24 hours or by day calender ? for me suspend service after 1 day , mean the next day calender don't matter the hours . if i create service in 31-03-2016 23:59 . next day is 01-04 00:00 . Services are suspended if they are more than one day (>24 hours) in the past. So in your example, the 1 minute difference would not qualify it as suspendable even if that minute separated two calendar days. That behavior might be a good feature request, though. Michael 1
0 Blesta Addons Posted April 4, 2016 Author Report Posted April 4, 2016 request has been posted http://www.blesta.com/forums/index.php?/topic/6316-improuve-days-calculation-for-suspension/ . any temporary fix for this ?
Question
Blesta Addons
How Blesta calcul the day in Suspend Services Days After Due ?
i have Suspend Services Days After Due 1 Day .
and :
service A created in 31-03 ; invoice due date31-03
service B created in 01-04 ; invoice due date 01-04
the Service A was suspended in 02-04 00:00 .
Service B stil Active in 02-04 . as i see it would be suspended in 03-04 00:00 .
i ask how blesta calcul this ?
31 + 1d = 01-04 . and as i have sent cron for suspension run in 00:00 , then the service should be suspended in 01-04 00:00 .
is blesta calcul 24 hours or by day calender ?
for me suspend service after 1 day , mean the next day calender don't matter the hours .
if i create service in 31-03-2016 23:59 . next day is 01-04 00:00 .
another issue also from our experience in v2 .
5 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now