Use short year for output directory

This commit is contained in:
Seb Seager 2021-01-05 14:09:29 -06:00
parent de688a3cce
commit a6ea7be6df

View file

@ -186,7 +186,7 @@ def parse_channel_history(msgs, users, check_thread=False):
else:
usr = {'name': '', 'real_name': 'none'}
timestamp = datetime.fromtimestamp(round(float(msg['ts']))).strftime('%m-%d-%Y %H:%M:%S')
timestamp = datetime.fromtimestamp(round(float(msg['ts']))).strftime('%m-%d-%y %H:%M:%S')
text = msg['text'] if msg['text'].strip() != "" else "[no message content]"
for u in [x['id'] for x in users]:
text = str(text).replace('<@%s>' % u, '<@%s> (%s)' % (u, name_from_uid(u, users)))