properly saved time as time object in database