datetimes
log_panel.datetimes
¶
to_database_datetime(value, app_timezone=None)
¶
Return a datetime compatible with the project's DateTimeField settings.
Source code in log_panel/datetimes.py
to_display_datetime(value, app_timezone)
¶
Return a timezone-aware datetime in the admin display timezone.
Source code in log_panel/datetimes.py
from_record_timestamp(timestamp)
¶
Return a log-record timestamp in the format expected by DateTimeField.