IP and TIME not being recorded in transactions

For some reason, the ip address and the time of the transaction are not being recorded in the database. I looked thorugh phpmyadmin and through the code and nothing seems to have been altered. i tried generating a date through a regular time function and assigning the variable to that, but that isn’t working either. Anyone had this happen before? Any idea where to start looking for the answer?