Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SubrataSarkar32 committed Dec 24, 2024
1 parent 4026088 commit 91ac37a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Modules/softwaresSection.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import subprocess
import time
import datetime
import dateutil.parser
from configuration import red, green, yellow, log_col, debug_mode

def list_allStartup_Software():
Expand Down Expand Up @@ -166,7 +167,8 @@ def installed_Software ():
if size[i] is not None:
report_installed_software+="Size: "+str(size[i])+" Bytes\r"
if install_date[i] is not None:
report_installed_software+="Install Date: "+ datetime.datetime.strptime((str(install_date[i])), "%Y%m%d").strftime("%d-%m-%Y") + "\r"
yourdate = dateutil.parser.parse(str(install_date[i]))
report_installed_software+="Install Date: "+ yourdate.strftime("%d-%m-%Y") + "\r"
if runningState[i] is not None:
report_installed_software+="State: "+str(runningState[i])+ "\r"
if runningState[i] == "Running":
Expand Down

0 comments on commit 91ac37a

Please sign in to comment.