Sounds like you already checked out. Life is short, go find something you're happy with. If it's a short period of time I can understand, but if it's a prolong issue, I'd have to say management is to blame. If a company is not looking out for the well being of its employee, I say high tail out of there. There are many other companies out there that you can work and have a life. Sounds like you are suffering from a burnout. I hope you'll find coding fun again. Good luck!