-
Notifications
You must be signed in to change notification settings - Fork 5
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
Calculation wrong? #6
Comments
@Calabashmc If you are interested I created new SLA Calculator and I plan to publish it in this month. It started from enhancing this library but it turned out that the way it count time is constrained in different ways, so I've created new one. My solution counts day by day and counts seconds. Everything is based on Pendulum library like it is here. Custom excluded days, different days working hours etc. It provides describing flag for full reasoning. :)
|
Hi @imkebe |
@imkebe just checking to see if your new sla-calculator is published yet? |
I'm using this library in a small app and it is great but seems to have a small issue. Perhaps I'm doing something wrong.
I have a database with office hours.
It currenlty only has one entry which is this:
I have a function :
I'm in Australia and I sent in a create time which is after hours here. The sla_hours.respond_by is 1 hour. The sla_resolve_by is 2 hours.
It does skip Saturday but says adding 1 hour is like so (seem below). So Sunday rather than Monday. What am I doing wrong?
The text was updated successfully, but these errors were encountered: