I have a MySQL server installed on Solaris 10u8. Until recently, everything was working fine. Then all of a sudden, the current time according to MySQL is always 00:00:00. CURDATE() seems to work fine except that the time it gives is still 00:00:00. I have some illustrations of my problem below. I have tried rebooting the machine. I have no idea what to do and this is messing up my web application. Any ideas?

Did you see the 1 warning message from insert into timetest values (curtime());? You're using the return value of select CURTIME() -- HH:MM:SS, and attempting to use it as a datetime format -- YYYY-MM-DD HH:MM:SS. CURTIME() does not convert to a valid datetime. From the docs at http://dev.mysql.com/doc/refman/5.1/en/datetime.html:

...
Illegal DATETIME, DATE, or TIMESTAMP values are converted to the “zero” value of the appropriate type ('0000-00-00 00:00:00' or '0000-00-00').
...