I'm going to go against the grain. I stayed in a job that I hated for years. I woke up miserable, sick to my stomach every day that I had to go into work. I loathed my boss, found the work gratifying, had reached the top of my pay grade, and there was nothing else left for me. Three days before Christmas I quit. I felt sick over quitting, but it set me free.
I can't say this loud enough, but its' just a job - your life is too short to spend 8+ hours a day somewhere you are miserable at.
Being miserable with your job impacts your relationships, your health, your sex life, everything. If you think about it that way, you spend way more than 8 hours a day on the job. There's also commute time, downtime that you spend thinking about work, etc.
Take it from someone who has BTDT, get out now. A new opportunity will come along.