From 43409b30894a5c06581bfd06ecc619aa6f49b3df Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Thu, 7 Jan 2016 20:37:00 -0800 Subject: [PATCH] Fix month name localization on play totals graph #423 --- plexpy/graphs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plexpy/graphs.py b/plexpy/graphs.py index ae6aa65a..10c49219 100644 --- a/plexpy/graphs.py +++ b/plexpy/graphs.py @@ -16,6 +16,7 @@ from plexpy import logger, database, helpers, common import datetime +import locale class Graphs(object): @@ -311,7 +312,7 @@ class Graphs(object): dt = datetime.datetime(*month_item[:6]) date_string = dt.strftime('%Y-%m') - categories.append(dt.strftime('%b %Y')) + categories.append(dt.strftime('%b %Y').decode(locale.getlocale()[1])) series_1_value = 0 series_2_value = 0 series_3_value = 0