change install date format wh1te909/tacticalrmm#288

This commit is contained in:
wh1te909 2021-03-06 16:37:07 -08:00
parent cc13a14679
commit f24727cc2d
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ func (a *WindowsAgent) GetInstalledSoftware() []rmm.SoftwareList {
Name: s.Name(),
Version: s.Version(),
Publisher: s.Publisher,
InstallDate: fmt.Sprintf("%02d/%02d/%d", t.Month(), t.Day(), t.Year()),
InstallDate: fmt.Sprintf("%02d-%d-%02d", t.Year(), t.Month(), t.Day()),
Size: ByteCountSI(s.EstimatedSize * 1024),
Source: s.InstallSource,
Location: s.InstallLocation,

View File

@ -21,7 +21,7 @@ func (a *WindowsAgent) GetInstalledSoftware() []rmm.SoftwareList {
Name: s.Name(),
Version: s.Version(),
Publisher: s.Publisher,
InstallDate: fmt.Sprintf("%02d/%02d/%d", t.Month(), t.Day(), t.Year()),
InstallDate: fmt.Sprintf("%02d-%d-%02d", t.Year(), t.Month(), t.Day()),
Size: ByteCountSI(s.EstimatedSize * 1024),
Source: s.InstallSource,
Location: s.InstallLocation,