Загрузка данных
-- было: v_calc_date + now()::time, -- стало: v_calc_date + CASE WHEN p_date IS NOT NULL THEN now()::time ELSE '00:00:00'::time END,