Before I start, I want to say that this is related to a Bukkit plugin.
I have tried searching this all over the web, but I can't just find a good way to do it.
I am trying to build a plugin that can connect to a database (usually MySQL), and locally keep track of the time of the database, even if it goes down. The plugin is a ban management system, for multiple servers. The situation is this one: The timezone of the database server is different from the time on the servers, and each server has its own timezone. There's only 1 database, so, the best way to do it is keeping track of the time using the time of the database. But, if the database goes down, a thread will run until the database comes back and the record is successfully inserted. If I were to use UNIX_TIMESTAMP() on the column that stores when the ban was created, if the database went down, it would only start counting after the database came back. So, breaking it down, what I want is a way to keep track of the time of the database, even if the database goes down and comes back up.
Thanks in advance.