I am creating an application. I am running a countdown timer and saving time into a database by converting time into a floating point value (double). Suppose I start the timer at 2.00 PM and set the countdown for 3 hours. After 1 hour I quit the application and on relaunch I am getting time stored from database. Count the difference between stored time and current time I restore the timer according to that, but what if I quit the application and change the time zone to something else?
How do I handle this or how do I fix a specific time zone so that even user changes the time zone the timer always works perfect?