FirstResponseInMin calculation problem

Moderator: crythias

Locked
adminrd
Znuny newbie
Posts: 39
Joined: 29 Aug 2013, 15:14
Znuny Version: 5.0.9

FirstResponseInMin calculation problem

Post by adminrd »

Hi,

I have a problem when trying to export search results in CSV file.
The field FirstResponseInMin is well calculated when a ticket is created and response done during the same day.
But when the ticket is cretaed the day D and the response is the day D+1 then the FirstResponseInMin is false : it is 59 or 60 min more than it should be.
Example :
ticket
Created 2013-01-16 18:50:03
FirstResponse : 2013-01-17 08:28:56
FirstResponseInMin : 158
Calendar : 8h - 20h
Calculated : 99

If someone can help me the solve this problem, it would be great for me !

Thanks in advance!
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: FirstResponseInMin calculation problem

Post by reneeb »

So in your calendar settings only the checkboxes 8 to 19 are checked, right?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
adminrd
Znuny newbie
Posts: 39
Joined: 29 Aug 2013, 15:14
Znuny Version: 5.0.9

Re: FirstResponseInMin calculation problem

Post by adminrd »

Hi,

Thanks for your answer.
In the settings, TimeWorkingHours from 8 to 20 are checked.

Regards,
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: FirstResponseInMin calculation problem

Post by reneeb »

Then your working hours are from 8:00:00 to 20:59:59 and the calculation is correct. The checkbox "8" means 8:00 to 8:59...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
adminrd
Znuny newbie
Posts: 39
Joined: 29 Aug 2013, 15:14
Znuny Version: 5.0.9

[SOLVED]Re: FirstResponseInMin calculation problem

Post by adminrd »

Hi,

Thank you very much, it helps me a lot !

Regards,
Locked