fix(core): Address code review from Issue #1
This commit is contained in:
1 parent
5d9df6649a
commit
6061f5c4e5
28 files changed
+205
-56
No files matched your search
+2
-1
@@ -28,6 +28,7 @@ import subprocess
|
||||
import sys
|
||||
import time
|
||||
from datetime import datetime
|
||||
from datetime import timezone
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, Optional
|
||||
|
||||
@@ -81,7 +82,7 @@ class WitnessLoop:
|
||||
Observation dict with health, coherence, and timestamp.
|
||||
"""
|
||||
observation = {
|
||||
"timestamp": datetime.utcnow().isoformat(),
|
||||
"timestamp": datetime.now(timezone.utc).isoformat(),
|
||||
"witness": self.name,
|
||||
"target": self.target_url,
|
||||
"target_up": False,
|
||||
|
||||
Reference in new issue
Block a user