TheRundown

フリーミアム
よって TheRundown | 更新済み il y a 5 jours | Sports
人気

9.7 / 10

レイテンシー

254ms

サービスレベル

100%

Health Check

100%

すべてのディスカッションに戻る

Incorrect "event_date" for NHL games

Rapid account: Declankennedy
declankennedy
il y a 4 ans

Hi -

I’ve been using ‘Openers by Sport and Date’ to collect info for NHL games happening today, and I’m finding that the ‘event_date’ for the games is incorrect, even though I set the offset to 360 for CST.

Let me know if I’m missing something! Thanks!

Declan

Rapid account: Therundown
therundown Commented il y a 4 ans

HI declankennedy,

Thanks for getting back to us.

Yes, the event_date is always provided in the ISO8601 format as rajasaurus mentions. This format contains the date and time in addition to timezone information. It looks like you’re using python. We recommend using the pytz library for parsing timezone aware dates in python. It can be found here: http://pytz.sourceforge.net/#example-usage

Please let us know if you have any further questions.

Best,
TheRundown Team

Rapid account: Rajasaurus
rajasaurus Commented il y a 4 ans

@declanekennedy - the time format in event_date is in iso 1860 format (https://en.wikipedia.org/wiki/ISO_8601) and the default timezone if not specified is UTC. EST is currently UTC-5 and when we enter daylight time (EDT) it is UTC-4

Rapid account: Therundown
therundown Commented il y a 4 ans

Hi declankennedy,

Can you provide us with more information, specifically, the endpoint you’re using, with parameters, which event ids have the incorrect event date, what event date they were showing, and what you expected them to show?

Thanks,
TheRundown Team

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿