OCSInventory-NG / UnixAgent

This is the OCS unified agent for Unix operating systems
http://www.ocsinventory-ng.org/en/
GNU General Public License v2.0
89 stars 84 forks source link

fix(software): fix wrong month in softwares installation date #434

Closed Lea9250 closed 1 year ago

Lea9250 commented 1 year ago

Status

READY

Description

The localtime() function returns months indexed from 0 to 11, but the installation month returned by the agent was always off by one month.

Add +1 to the month to get the correct value