From f24727cc2d107626b93c254d0ab1d71ae2e19ddc Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sat, 6 Mar 2021 16:37:07 -0800 Subject: [PATCH] change install date format wh1te909/tacticalrmm#288 --- agent/software_windows_386.go | 2 +- agent/software_windows_amd64.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/software_windows_386.go b/agent/software_windows_386.go index 8c1291b..953e614 100644 --- a/agent/software_windows_386.go +++ b/agent/software_windows_386.go @@ -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, diff --git a/agent/software_windows_amd64.go b/agent/software_windows_amd64.go index 44586c7..3c8c4b5 100644 --- a/agent/software_windows_amd64.go +++ b/agent/software_windows_amd64.go @@ -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,