worship at noon and midnight

My mother and grandmother always told me that we should not go out of the house at midnight. Not only this but they also say that we shouldn't offer salaah or recite Quran for about half an hour around noon and midnight(11:45-12:15). They say this is the time of Jinns and devils or something along those lines. Does this have any truth to it? How can there be any moment during the day when we aren't supposed to worship Allah(swt)?