Another fix for 'datestamp' and 'timestamp'

This commit is contained in:
JonnyWong16 2016-01-24 09:52:20 -08:00
parent 73ff28465d
commit 9e83f6d779

View file

@ -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