Flow_1al74ve Flow_1al74ve Flow_1u0p2sw try: is_format except NameError: is_format = False try: time_zone except NameError: time_zone = "US/Eastern" try: date_format except NameError: date_format = "YMD" try: time_format except NameError: if is_format: time_format = "24" else: time_format = "12" try: is_waku_message_timestamp except NameError: is_waku_message_timestamp = False utc_date_time_obj = datetime.utcnow() local_date_time_obj = get_localtime(utc_date_time_obj, time_zone) if date_format == "YMD": local_date_str = local_date_time_obj.strftime('%Y-%m-%d') elif date_format == "MDY": local_date_str = local_date_time_obj.strftime('%m-%d-%Y') else: local_date_str = local_date_time_obj.strftime('%d-%m-%Y') # Set local time if time_format == "24": local_time_str = local_date_time_obj.strftime('%H:%M') else: local_time_str = local_date_time_obj.strftime('%I:%M %p') del(utc_date_time_obj) del(local_date_time_obj) Flow_1u0p2sw