hi every one

i am coding a program that using MYSQL database.

the problem is :

when i change the time or date of the computer while my program is running the MYSQL database disconnect.

so .. is there any way that i can get a signal when the database disconnect ,or when the computer date or time change ??