YOU SAID:
I am tired because I was awake until 5 am
INTO JAPANESE
午前5時まで起きていたので疲れました
BACK INTO ENGLISH
I was tired because I was up until 5 am
INTO JAPANESE
午前5時までだったので疲れました
BACK INTO ENGLISH
I was tired because it was until 5 am
INTO JAPANESE
午前5時までだったので疲れました
BACK INTO ENGLISH
I was tired because it was until 5 am
You've done this before, haven't you.