Make datestamp and timestamp formattable

This commit is contained in:
JonnyWong16 2023-11-13 11:25:39 -08:00
parent 8fd62e30b3
commit 5abdfd7377
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -982,8 +982,8 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
'current_weekday': now_iso[2],
'current_week': now_iso[1],
'week_number': now_iso[1], # Keep for backwards compatibility
'datestamp': now.format(date_format),
'timestamp': now.format(time_format),
'datestamp': CustomArrow(now, date_format),
'timestamp': CustomArrow(now, time_format),
'unixtime': helpers.timestamp(),
'utctime': helpers.utc_now_iso(),
# Stream parameters
@ -1278,8 +1278,8 @@ def build_server_notify_params(notify_action=None, **kwargs):
'current_weekday': now_iso[2],
'current_week': now_iso[1],
'week_number': now_iso[1], # Keep for backwards compatibility
'datestamp': now.format(date_format),
'timestamp': now.format(time_format),
'datestamp': CustomArrow(now, date_format),
'timestamp': CustomArrow(now, time_format),
'unixtime': helpers.timestamp(),
'utctime': helpers.utc_now_iso(),
# Plex remote access parameters