For a conference paper I have to use a custom package provided by the conference. This package contains the following line:
\renewcommand{\thesection}{\arabic{section}.}
which puts a dot after the number in a section title. Now, when I add a reference to a section, the dot is shown in the reference as well. MWE:
\documentclass{article}
% real code:
% \usepackage{myconference}
% MWE code:
\renewcommand{\thesection}{\arabic{section}.}
\begin{document}
\section{First section}
\label{sec:first}
In Section~\ref{sec:first} the reference does not look good.
\end{document}
The style guide of the conference does not specify the appearance of section references. Therefore, I would like to remove the dot in the reference (while keeping the dot in the title itself). I am not allowed to change the conference package, but I can modify the code of my own paper, including redefining \ref (or using a custom command for referencing) if necessary. Any ideas?

\thesectionfrom the conference package. – Marijn Feb 05 '18 at 16:21\renewcommand{\thesection}{\arabic{section}}) and then use other packages or a manual correct of\@seccntformat. – Werner Feb 05 '18 at 16:27