Moment JS, UTC to Local time

HTML

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://momentjs.com/downloads/moment.js"></script>
<p id="utcTime"></p>
<p id="localTime"></p>
<p id="anotherLocalTime"></p>

JavaScript

// UTC time
let utcTime = "2017-02-02 ".concat("08:00:00");
var utcText = moment("2017-02-02 ".concat("08:00:00")).format("HH:mm:ss");

// First way
var offset = moment().utcOffset();
var localText = moment.utc(utcTime).utcOffset(offset).format("HH:mm:ss");

// Another way
var anotherway = moment.utc(utcTime).local().format("HH:mm:ss");

// Showing times
$("#utcTime").html(utcText + " (UTC Time)");
$("#localTime").html(localText + " (Local Time)");
$("#anotherLocalTime").html(anotherway + " (Local Time another way)");