Thanks in advance
The proximity and light sensor are different. The intensity sensor sure has more sensitivity at night, but the proximity sensor has its own IR. It will work just well in both day and night.
If you have this problem on all ROMs, you might have a hardware issue. Try updating your firmware.
Happy to help.