The Movie Database Support

I am trying to access specific locations (time-zone) tv series, i have done something like this on the url but however even I change the time zone string to different place

I get te same response for Airing Today and On Air(TV) Api calls

interface FetchParams {
  pageParam: number;
  // NEW: Optional timezone parameter
  timezone?: "Europe/Istanbul"; // e.g., "Europe/London", "America/New_York"
}
const fetchTVSeries = async (
  endpoint: string,
  { pageParam, timezone }: FetchParams // Destructure timezone here
): Promise<TVShow[]> => {
  // Construct the base URL with language and page
  let url = `https://api.themoviedb.org/3/tv/${endpoint}?language=en-US&page=${pageParam}`;

  // NEW: Conditionally add timezone if provided
  if (timezone) {
    url += `&timezone=${encodeURIComponent(timezone)}`;
  }



export const fetchOnTheAirTVSeries = (params: FetchParams) =>
  fetchTVSeries("on_the_air", params);

export const fetchAiringTodayTVSeries = (params: FetchParams) =>
  fetchTVSeries("airing_today", params);

How can I find solution to this ?

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Logg inn