Bottle is formatted and writes to database, but doesn't log time correctly.