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:
@ -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
|
||||
|
Reference in New Issue
Block a user