summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2017-03-24 22:25:28 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2017-03-24 22:25:28 +0100
commit56fc383a95d77556de570f571b7a78b468b47e1c (patch)
tree17d32077636f609d71ddae8c5601f8aa6d9b8e22
parent3bc83277ea2d7eb58814451da8031507136d1e9c (diff)
Suffix dates with UTC to indicate they're UTC dates.
-rw-r--r--pastepy.py4
1 files 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 &ndash; 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 &ndash; View paste &ndash; %s' % (settings.pastebin_name, paste.title or 'Untitled'),
'header': '%s &ndash; 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',