changed to 2 hours for past economic events
This commit is contained in:
parent
73bfbf5ece
commit
1ce144b767
@ -726,7 +726,7 @@ def updateEconomic(api_key, logf):
|
||||
result = ",".join(country_codes_list)
|
||||
timezone = pytz.timezone(all_economic_settings['timezone'])
|
||||
date_local = datetime.now(timezone)
|
||||
date_local = (date_local - timedelta(hours=1)).strftime('%Y-%m-%dT%H:%M:00')
|
||||
date_local = (date_local - timedelta(hours=2)).strftime('%Y-%m-%dT%H:%M:00')
|
||||
#date_local = datetime.now(timezone).strftime('%Y-%m-%dT00:00:00')
|
||||
date_local2 = datetime.now(timezone).strftime('%Y-%m-%dT23:59:00')
|
||||
date_from = timezone.localize(datetime.strptime(date_local,'%Y-%m-%dT%H:%M:%S')).astimezone(pytz.timezone('GMT')).strftime('%Y-%m-%dT%H:%M:%S.000Z')
|
||||
|
Loading…
Reference in New Issue
Block a user