From 9e83f6d7795ddd40b443021f792a8e0a28b1a4d0 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 24 Jan 2016 09:52:20 -0800 Subject: [PATCH] Another fix for 'datestamp' and 'timestamp' --- plexpy/notification_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 402910d3..27ce5a28 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -795,8 +795,8 @@ def build_server_notify_text(state=None): available_params = {'server_name': server_name, 'server_uptime': server_uptime, 'action': state, - 'datestamp': time.strftime(helpers.parse_js_date(plexpy.CONFIG.DATE_FORMAT)), - 'timestamp': time.strftime(helpers.parse_js_date(plexpy.CONFIG.TIME_FORMAT))} + 'datestamp': arrow.now().format(plexpy.CONFIG.DATE_FORMAT.replace('Do','').replace('zz','')), + 'timestamp': arrow.now().format(plexpy.CONFIG.TIME_FORMAT.replace('Do','').replace('zz',''))} # Default text subject_text = 'PlexPy (%s)' % server_name