Shahr is an unspecified time noun in this lesson.
Al-Mafʿūl Fīhi: Adverbials of Time and Place