summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2017-01-18 09:49:09 +0000
committerGitHub <noreply@github.com>2017-01-18 09:49:09 +0000
commit1d025d3e39a22f5d61e2c136ce508ec23dad9c81 (patch)
tree1f743cd1e55599e62366b0e8df448796bd4f606e
parente2915ca62ca3aee0b8863557fa1b9a0514e5eab6 (diff)
parentaf5045f26e6e9d2834103c5cecef2adf946e7f8d (diff)
Merge pull request #981 from dcbaker/pr/dont-use-gnu-extensions
helper: Don't rely on GNU extensions for strftime
-rw-r--r--alot/helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/helper.py b/alot/helper.py
index 1326f97e..a354d7a0 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -235,7 +235,7 @@ def pretty_datetime(d):
>>> pretty_datetime(now - timedelta(days=356))
u'Apr 2011'
"""
- ampm = d.strftime('%P')
+ ampm = d.strftime('%p').lower()
if len(ampm):
hourfmt = '%I' + ampm
hourminfmt = '%I:%M' + ampm