CiscoDevNet / Hyperflex-Hypercheck

Perform pro-active self checks on your Hyperflex cluster to ensure stability and resiliency
MIT License
27 stars 17 forks source link

Timestamps should follow ISO 8601 #27

Closed sttardy closed 4 years ago

sttardy commented 4 years ago

HyperCheck timestamps should follow ISO 8601 for consistency and ease-of-use.

Several lines like: dir_name = "HX_Report_" + str(cdate.strftime("%d_%m_%Y_%H_%M_%S")) and return (datetime.datetime.now().strftime("%d-%m-%Y_%I-%M-%S")) and formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s', '%m-%d-%Y %I:%M:%S') and ipdt = datetime.datetime.strptime(d, "%m/%d/%y %H:%M:%S") and jpdt = datetime.datetime.strptime(jd, "%m/%d/%y %H:%M:%S")

Should follow format YYYY-MM-DDThh:mm:ss

hsardana09 commented 4 years ago

Timestamp corrected in the updated/committed build.