Try 30 days of free premium.

API Schedule endpoint shows a show from previous day to start

JoeSmith wrote 2 years ago: 1

Hello,

When pulling a specific date from the endpoint schedule. The api will list some of the previous days shows on the first couple of lines.

Url: https://api.tvmaze.com/schedule?country=US&date=2021-09-29

The first result shows dates for 2021-09-28 on airdate.

[{"id":2181557,"url":"https://www.tvmaze.com/episodes/2181557/wild-crime-1x01-she-had-a-bad-fall","name":"She Had a Bad Fall","season":1,"number":1,"type":"regular","airdate":"2021-09-28","airtime":"00:00",

When pulling for a specific date it should not include something that has an airdate of different date.

 

Thank you


gazza911 wrote 2 years ago: 1

This is simply that any episode airing between midnight and 5am are entered as the previous day.

You can see in airstamp property the fully formatted version. 

2021-09-29T04:00:00+00:00

Note, this is in UTC time. 

JoeSmith wrote 2 years ago: 2

Yes I have seen that but that ends up defeating the purpose of using the airdate field then which should show the correct airdate from the airstamp.

Try 30 days of free premium.