mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-17 05:57:21 -05:00
Use timezone-aware timestamps and update tests
This commit is contained in:
@@ -13,6 +13,8 @@ import httpx
|
||||
import os
|
||||
import logging
|
||||
|
||||
from app.utils import utc_now
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
router = APIRouter(prefix="/api/sentry", tags=["sentry"])
|
||||
@@ -376,5 +378,5 @@ async def sentry_health_check():
|
||||
return {
|
||||
"service": "sentry",
|
||||
"status": "operational" if SENTRY_AUTH_TOKEN else "not_configured",
|
||||
"timestamp": datetime.utcnow().isoformat()
|
||||
"timestamp": utc_now().isoformat()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user