The past tense of have a bad time is had a bad time.
The third-person singular simple present indicative form of have a bad time is has a bad time.
The present participle of have a bad time is having a bad time.
The past participle of have a bad time is had a bad time.