Jump to content

Question

Posted

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

  • 0
Posted

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
Posted

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

 

144307case1.png

 

case 2

 

256981case2.png

 

settings

 

158062settings.png

 

 

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
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...