as humans we evolved to sleep at night and be in our shelters... not to be working out
unfortunately work is work though. so as non-optimal as it is you have little choice if that is the only thing you can do
i can tell you that people who work night shifts at jobs lead miserable lives, in the long run it is not worth it and YOU WILL run into health problems working nights and trying to sleep during the day.