timestamp = db.get_time()
time_offset = db.get_time_offset () # Тут смещение часового пояса от -24 до 24
out_time = datetime.datetime.utcfromtimestamp(timestamp).strftime('%Y-%m-%d %H:%M:%S')
from datetime import timedelta
new_date = out_time + timedelta(hours=time_offset)