I want to express that I had a short night.
Night is a feminine noun, so I would decline the adjective accordingly:
Моя ночь была короткая.
I know that short forms exist and can be applied, when used predicatively:
Моя ночь была коротка.
This is what Google Translate suggests as well and - it is usually right.
However, on-line I also found this version quite often:
Моя ночь была короткой.
From a grammatical perspective, I would use either
коротка. But since
короткой is also used a lot of times, I wonder which version is correct or more common.
To make things even worse:
When I translate "The weather was cold.", Google Translate suggests this:
Погода была холодной.
погода is also a feminine noun, in this case the ending
-ой is suggested. I know that Google is by far not a perfect translator, but still, this confuses me.