Alexander Orlov Posted January 30, 2015 Report Posted January 30, 2015 As anyone seen this happen at all? Quote
0 Michael Posted January 30, 2015 Report Posted January 30, 2015 I'm not sure I think that happened to me bare with. Edit: yeah I get that too: http://licensecart.com/billing/order/config/index/blesta/?group_id=7&pricing_id=396 I think it's a bug (but nice find I told a visitor he'd have to wait until 1st Feb without spotting it was adding a month..) Woops. Quote
0 Alexander Orlov Posted January 30, 2015 Author Report Posted January 30, 2015 not just me then, Tyson or Paul should let us know if its a bug soon. Quote
0 Tyson Posted January 30, 2015 Report Posted January 30, 2015 Certainly doesn't look right. I'll see if I can find out what is going on with that. Michael 1 Quote
0 Michael Posted January 30, 2015 Report Posted January 30, 2015 not just me then, Tyson or Paul should let us know if its a bug soon. It's a weird one but nothing was changed in 3.4.1 so it must be something to do with the months. Quote
0 Alexander Orlov Posted January 30, 2015 Author Report Posted January 30, 2015 I'm.still on 3.4.0 Quote
0 Paul Posted January 30, 2015 Report Posted January 30, 2015 I'm.still on 3.4.0 That's good to know. Your prorata settings would help also. My initial suspicion is that it has to do with the current day (Jan 30), and that it may be a weird date calculation issue. I've seen weird date calculation issues with PHP before, but the possibility exists that it could be a bug of our own making. My guess is that it will correct itself on its own tomorrow or the day after, but looking forward to hearing what Tyson finds out. Quote
0 Alexander Orlov Posted January 30, 2015 Author Report Posted January 30, 2015 not the point as for people who use prorata then we are losing a months worth of money as its skipping to march not February Quote
0 Michael Posted January 30, 2015 Report Posted January 30, 2015 That's good to know. Your prorata settings would help also. My initial suspicion is that it has to do with the current day (Jan 30), and that it may be a weird date calculation issue. I've seen weird date calculation issues with PHP before, but the possibility exists that it could be a bug of our own making. My guess is that it will correct itself on its own tomorrow or the day after, but looking forward to hearing what Tyson finds out. Here's mine Paul mate: Quote
0 Alexander Orlov Posted January 30, 2015 Author Report Posted January 30, 2015 just notice mine was set to standard so a little confused to why it was coming up with that Quote
0 Tyson Posted January 30, 2015 Report Posted January 30, 2015 This problem has to do with how php calculates "+1 month" as 30 days, and since February only has 28 days in it, it calculates one month from Jan 30 and Jan 31 into March. So only January 30-31 would be affected by this issue. The fix for this will be included in the next version of Blesta as apart of CORE-1572. Being that today is January 30, you will likely want to fix this yourself in the meantime. To do so, update the file /app/models/packages.php Find this line: $today = $Date->cast($start_date, "j"); Below that line, add: $start_date = $Date->format("Y-m-01 H:i:sP", $start_date); Michael 1 Quote
0 Michael Posted January 30, 2015 Report Posted January 30, 2015 This problem has to do with how php calculates "+1 month" as 30 days, and since February only has 28 days in it, it calculates one month from Jan 30 and Jan 31 into March. So only January 30-31 would be affected by this issue. The fix for this will be included in the next version of Blesta as apart of CORE-1572. Being that today is January 30, you will likely want to fix this yourself in the meantime. To do so, update the file /app/models/packages.php Find this line: $today = $Date->cast($start_date, "j"); Below that line, add: $start_date = $Date->format("Y-m-01 H:i:sP", $start_date); Awesome Tyson mate, worked Bloody PHP haha. Quote
0 Tyson Posted January 30, 2015 Report Posted January 30, 2015 Awesome Tyson mate, worked Bloody PHP haha. Well, you updated that quickly. It's not PHP's fault, though. Michael 1 Quote
0 Michael Posted January 30, 2015 Report Posted January 30, 2015 Well, you updated that quickly. It's not PHP's fault, though. haha and well have to blame someone PHP or the people who made the calenders haha Quote
0 Tyson Posted January 30, 2015 Report Posted January 30, 2015 haha and well have to blame someone PHP or the people who made the calenders haha I blame myself. Failure to consider all special cases. ModulesBakery 1 Quote
0 Michael Posted January 31, 2015 Report Posted January 31, 2015 Tyson mate, looks like this is happening again but this time it's the full costs? http://licensecart.com/billing/order/config/index/interworx/?group_id=18&pricing_id=289 on everything including: http://uploadir.com/u/qtihl5ua.png Quote
0 Tyson Posted February 2, 2015 Report Posted February 2, 2015 Tyson mate, looks like this is happening again but this time it's the full costs? http://licensecart.com/billing/order/config/index/interworx/?group_id=18&pricing_id=289 on everything including: http://uploadir.com/u/qtihl5ua.png Nice catch. That's actually a separate issue I described in CORE-1574. It will also be fixed for the next version. Michael 1 Quote
0 Michael Posted February 2, 2015 Report Posted February 2, 2015 Nice catch. That's actually a separate issue I described in CORE-1574. It will also be fixed for the next version. Awesome mate Quote
Question
Alexander Orlov
As anyone seen this happen at all?
17 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.