diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2017-03-24 22:25:28 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2017-03-24 22:25:28 +0100 |
commit | 56fc383a95d77556de570f571b7a78b468b47e1c (patch) | |
tree | 17d32077636f609d71ddae8c5601f8aa6d9b8e22 | |
parent | 3bc83277ea2d7eb58814451da8031507136d1e9c (diff) |
Suffix dates with UTC to indicate they're UTC dates.
-rw-r--r-- | pastepy.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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', |