dpguthrie / dpguthrie/yahooquery

calendar_events returns different datetimes when code is run in different timezones

Open
#282 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
920
Forks
164
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When I run the same code on my local machine UTC+2 and server UTC+0, I get back different times of planned earnings.

local machine
{'NFLX': {'maxAge': 1,
'earnings': {**'earningsDate': ['2024-07-18 22:00:S']**,
'earningsCallDate': [1713473100],
'isEarningsDateEstimate': False,
'earningsAverage': 4.41,
'earningsLow': 4.2,
'earningsHigh': 4.72,
'revenueAverage': 8864670000,
'revenueLow': 8782690000,
'revenueHigh': 9032030000}}}

server
2.3.7
{'NFLX': {'maxAge': 1, 'earnings': {**'earningsDate': ['2024-07-18 20:00:S']**, 'earningsCallDate': [1713473100], 'isEarningsDateEstimate': False, 'earningsAverage': 4.41, 'earningsLow': 4.2, 'earningsHigh': 4.72, 'revenueAverage': 8864670000, 'revenueLow': 8782690000, 'revenueHigh': 9032030000}}}

Is there a way to specify, which timezone should yahooquery use?
Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.