remote-activity: Add column for remote server or realm creation date.

Expands the main query for remote servers to get the audit log
event datetime for when the server was created/registered.

The remote realm object has a field for when the remote realm
was created on the remote server.
This commit is contained in:
Lauryn Menard
2024-02-13 21:55:37 +01:00
committed by Tim Abbott
parent bf6978185d
commit 230294cfb3
4 changed files with 50 additions and 9 deletions

View File

@@ -101,6 +101,10 @@ def format_optional_datetime(date: Optional[datetime], display_none: bool = Fals
return ""
def format_datetime_as_date(date: datetime) -> str:
return date.strftime("%Y-%m-%d")
def format_none_as_zero(value: Optional[int]) -> int:
if value:
return value