From 5b9cc700f8a2442a84a1ca0eabe42a83cc3745a3 Mon Sep 17 00:00:00 2001 From: Ronald Schaten Date: Sun, 7 Apr 2013 23:52:55 +0200 Subject: [PATCH] format date according to ISO 8601 --- atomstrom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atomstrom.py b/atomstrom.py index 996928d..76f6e96 100755 --- a/atomstrom.py +++ b/atomstrom.py @@ -59,7 +59,7 @@ def mail_daily_digest(session, sender, receiver, prefix): text = truncate_text(entry.get_text(), 250) text = textwrap.fill(text, width=78) try: - body += '=> %s - %s\n' % (entry.firstfetched.strftime('%y%m%d-%H%M'), feedinfo.title) + body += '=> %s - %s\n' % (entry.firstfetched.strftime('%Y-%m-%dT%H:%M'), feedinfo.title) body += '>> %s\n' % entry.title body += '%s\n' % text body += '%s\n\n' % link @@ -70,7 +70,7 @@ def mail_daily_digest(session, sender, receiver, prefix): return if count > 0: today = datetime.now() - subject = '%s (%s) - %d entries' % (today.strftime('%y%m%d'), today.strftime('%A'), count) + subject = '%s (%s) - %d entries' % (today.strftime('%Y-%m-%d'), today.strftime('%A'), count) body = '%s\n\n%s\n\n%s' % (subject, ddate(), body) if prefix != '': subject = '%s %s' % (prefix, subject)