diff options
author | Nicolas Schodet <nico@ni.fr.eu.org> | 2020-08-11 16:43:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 16:43:44 +0200 |
commit | 43212ca00fd17a8f01a368f55bfec7e21913a65b (patch) | |
tree | 289575413db119db90164fc34f41a076c567d9b8 /wee_slack.py | |
parent | d427501e988d20b9ff80d55ae18a0ed888d515e4 (diff) | |
download | wee-slack-43212ca00fd17a8f01a368f55bfec7e21913a65b.tar.gz |
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
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |