balldontlie icon indicating copy to clipboard operation
balldontlie copied to clipboard

[REQUEST] add "timestamp" parameter instead of "7:30 PM ET"

Open CyrilNb opened this issue 2 years ago • 5 comments

Hello,

I live in Europe and it would be more convenient to have timestamp parameter in addition to "7:30 PM ET" as it's hard to convert into any other timezone.

Thanks a lot!

CyrilNb avatar Dec 05 '22 22:12 CyrilNb

If you're using JS, you could just use a library like day.js to convert to whatever format you need. I've used it a decent amount if you have any questions. Moment JS is also good, but I think it may be deprecated

https://day.js.org/

treyg avatar Dec 15 '22 21:12 treyg

No I am not using JS. And it's still better to have a universal format like a timestamp

CyrilNb avatar Dec 15 '22 21:12 CyrilNb

+1 I think it would be the best to include the correct time in the date parameter.

Ptujec avatar Jan 01 '23 20:01 Ptujec

@ynnadkrap would it be possible? Thank you so much. I'm struggling with the date and time format the API is sending

CyrilNb avatar Jan 06 '23 01:01 CyrilNb

Yes the best is a timestamp including the our. And include in the date attribute. Because in status then we dont know at which our was the date when the game ends. Eg

image

When the status is "Final" we lost the our of previous games

aberaldo avatar Apr 28 '23 21:04 aberaldo