It takes place in 2018, after the events of Terminator 2: Judgment Day (1991) and before the events of the first Terminator (1984).
This means that the story unfolds within the same timeline, but before the events of the first two films.