1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-17 01:32:37 +02:00

set epoch_dt conversion again if not C locale

This commit is contained in:
Kelly Brazil
2021-03-22 22:10:35 -07:00
parent f9921720cd
commit 55810ccd1f

View File

@ -235,6 +235,7 @@ def process(proc_data):
except Exception:
try:
locale.setlocale(locale.LC_TIME, '')
epoch_dt = datetime.strptime(entry['updated'], '%c')
entry['updated_epoch'] = int(epoch_dt.strftime('%s'))
except Exception:
pass