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:
|
except Exception:
|
||||||
try:
|
try:
|
||||||
locale.setlocale(locale.LC_TIME, '')
|
locale.setlocale(locale.LC_TIME, '')
|
||||||
|
epoch_dt = datetime.strptime(entry['updated'], '%c')
|
||||||
entry['updated_epoch'] = int(epoch_dt.strftime('%s'))
|
entry['updated_epoch'] = int(epoch_dt.strftime('%s'))
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
Reference in New Issue
Block a user