From 43212ca00fd17a8f01a368f55bfec7e21913a65b Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 11 Aug 2020 16:43:44 +0200 Subject: Fix usage of dates with non ASCII characters for Python 2 (#788) When not using english locale, date could contains non ASCII characters. Fixes #419 --- wee_slack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wee_slack.py') diff --git a/wee_slack.py b/wee_slack.py index f1d64f4..060452f 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -3926,7 +3926,7 @@ def resolve_ref(ref): else: token = token.replace('_pretty', '') if token in token_to_format: - return ref_datetime.strftime(token_to_format[token]) + return decode_from_utf8(ref_datetime.strftime(token_to_format[token])) else: return match.group(0) -- cgit