Fix: save time in DB