It's both. A prepositional phrase can be an adverb. In fact, lots of them are. This one is an adverb of time.