Closed sttardy closed 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")
dir_name = "HX_Report_" + str(cdate.strftime("%d_%m_%Y_%H_%M_%S"))
return (datetime.datetime.now().strftime("%d-%m-%Y_%I-%M-%S"))
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s', '%m-%d-%Y %I:%M:%S')
ipdt = datetime.datetime.strptime(d, "%m/%d/%y %H:%M:%S")
jpdt = datetime.datetime.strptime(jd, "%m/%d/%y %H:%M:%S")
Should follow format YYYY-MM-DDThh:mm:ss
Timestamp corrected in the updated/committed build.
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"))
andreturn (datetime.datetime.now().strftime("%d-%m-%Y_%I-%M-%S"))
andformatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s', '%m-%d-%Y %I:%M:%S')
andipdt = datetime.datetime.strptime(d, "%m/%d/%y %H:%M:%S")
andjpdt = datetime.datetime.strptime(jd, "%m/%d/%y %H:%M:%S")
Should follow format YYYY-MM-DDThh:mm:ss