mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-17 09:37:55 -05:00
Use timezone-aware timestamps and update tests
This commit is contained in:
@@ -12,6 +12,8 @@ import httpx
|
||||
import os
|
||||
import logging
|
||||
|
||||
from app.utils import utc_now
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
router = APIRouter(prefix="/api/discord", tags=["discord"])
|
||||
@@ -304,5 +306,5 @@ async def discord_health_check():
|
||||
"service": "discord",
|
||||
"status": "operational" if DISCORD_BOT_TOKEN else "not_configured",
|
||||
"webhook_status": "operational" if DISCORD_WEBHOOK_URL else "not_configured",
|
||||
"timestamp": datetime.utcnow().isoformat()
|
||||
"timestamp": utc_now().isoformat()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user