Questions & Answers about Dziś pracuję do ósmej.
Because after the preposition do in this meaning (until / up to), Polish uses the genitive case.
So:
- osiem = eight
- ósma = eighth / the eighth hour
- do ósmej = until eight
In time expressions, Polish often uses an implied word like godzina (hour), so do ósmej really means something like until the eighth hour, which is why the form changes.
Ósmej is the genitive singular feminine form of ósma.
This happens because:
- do requires the genitive
- the hidden noun is feminine: godzina (hour)
So the full underlying idea is:
- do ósmej godziny or more naturally do godziny ósmej
- but in everyday Polish, godzina is usually omitted
That leaves just:
- do ósmej
So even though you do not see godzina, the adjective/ordinal still agrees with it.