InfotelGLPI / activity

Plugin activity for GLPI
http://blogglpi.infotel.com/
GNU General Public License v2.0
5 stars 5 forks source link

Wrong holiday count with 3.1.5 - Ok with 3.1.2 #31

Open eandry77 opened 1 month ago

eandry77 commented 1 month ago

Hi,

the holiday count is broken after uprade from 3.1.2 to 3.1.5. Glpi version 10.0.16

For example holiday count changed from : 11 days -> 112 days 1 day -> 10.25 days 4 days -> 40.75 days 0.5 days -> 5.25 14 days -> 142.5

I've looked in the code to see what triggered this change, but i'm not a php/mariadb expert.

Thans for your help,

eandry77 commented 1 month ago

Well it my be because of updated holiday.class.php.

I'll investigate on this.

eandry77 commented 1 month ago

My mistake, holiday.class.php was modified 2 years ago.

I think the culprit might be in commit f353de6, since it modifies somthing with the actiontime field.