Consistent date endings

alt-html-css
Bob Mottram 2020-12-17 17:16:33 +00:00
parent 2f0e743d5d
commit 78837aaa9b
1 changed files with 1 additions and 0 deletions

View File

@ -5583,6 +5583,7 @@ class PubServer(BaseHTTPRequestHandler):
originPathStr = path.split('/newswirevote=')[0]
dateStr = \
path.split('/newswirevote=')[1].replace('T', ' ')
dateStr = dateStr.replace(' 00:00', '').replace('+00:00', '')
dateStr = urllib.parse.unquote_plus(dateStr) + '+00:00'
nickname = urllib.parse.unquote_plus(originPathStr.split('/users/')[1])
if '/' in nickname: