Device should update time automatically

Is there a way for the device to set the current time automatically when it's connected to the network or at least not to reset the time whenever it's restarted.


Our tester is going crazy because whenever he needs to restart the device the time gets reset too.


We know that there will be times when something can go wrong and a device needs a soft reset. Our app depends on the time of operations being correct so everything shows up on the server correctly and users will forget to set the current time everytime they need to reset the device so it will cause problems.


Is there a way to set the current time when a reset is made or not change it back?


Thank you.