mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 03:41:58 +00:00
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:
committed by
Tim Abbott
parent
bf6978185d
commit
230294cfb3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user