mirror of https://github.com/wh1te909/rmmagent.git
change install date format wh1te909/tacticalrmm#288
This commit is contained in:
parent
cc13a14679
commit
f24727cc2d
|
@ -31,7 +31,7 @@ func (a *WindowsAgent) GetInstalledSoftware() []rmm.SoftwareList {
|
||||||
Name: s.Name(),
|
Name: s.Name(),
|
||||||
Version: s.Version(),
|
Version: s.Version(),
|
||||||
Publisher: s.Publisher,
|
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),
|
Size: ByteCountSI(s.EstimatedSize * 1024),
|
||||||
Source: s.InstallSource,
|
Source: s.InstallSource,
|
||||||
Location: s.InstallLocation,
|
Location: s.InstallLocation,
|
||||||
|
|
|
@ -21,7 +21,7 @@ func (a *WindowsAgent) GetInstalledSoftware() []rmm.SoftwareList {
|
||||||
Name: s.Name(),
|
Name: s.Name(),
|
||||||
Version: s.Version(),
|
Version: s.Version(),
|
||||||
Publisher: s.Publisher,
|
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),
|
Size: ByteCountSI(s.EstimatedSize * 1024),
|
||||||
Source: s.InstallSource,
|
Source: s.InstallSource,
|
||||||
Location: s.InstallLocation,
|
Location: s.InstallLocation,
|
||||||
|
|
Loading…
Reference in New Issue