From 56fc383a95d77556de570f571b7a78b468b47e1c Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 24 Mar 2017 22:25:28 +0100 Subject: Suffix dates with UTC to indicate they're UTC dates. --- pastepy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pastepy.py b/pastepy.py index 0608faa..8c715fa 100644 --- a/pastepy.py +++ b/pastepy.py @@ -105,8 +105,8 @@ class Paste(object): 'title': settings.pastebin_name, 'header': '%s – Preview' % settings.pastebin_name, 'hash': None, - 'date': datetime.datetime.utcnow().ctime(), 'nick': mp['nick'].value.decode('utf-8') or 'Anoynmous', + 'date': '%s UTC' % datetime.datetime.utcnow().ctime(), 'syntax': lexername, 'pastetitle': mp['title'].value.decode('utf-8') or 'Untitled', 'text': text, @@ -184,7 +184,7 @@ class Paste(object): 'title': '%s – View paste – %s' % (settings.pastebin_name, paste.title or 'Untitled'), 'header': '%s – View paste' % settings.pastebin_name, 'hash': hash, - 'date': paste.date.ctime(), + 'date': '%s UTC' % paste.date.ctime(), 'nick': paste.nick or 'Anonymous', 'syntax': cache.syntax_name, 'pastetitle': paste.title or 'Untitled', -- cgit v1.2.3