Javascript toggling time type
<p>So recently, for fun and to learn more about Javascript since I haven't ever done much web development, I've been making a site which will function as a clock which picks a color by making a color hex code from the time. Fairly basic, but I'm having a bit of an issue with a feature I want to implement.</p>

<p>A feature I'd like to have is to use a button on the webpage to toggle between UTC and local time. To accomplish this, I have the button (onclick) multiply a number by -1, to have a positive and negative representing each state. I have verified through console.log that the value itself is changed, but there is no visible change in the time being displayed.</p>

<p>So, I'd appreciate it if someone could take a look. Perhaps I'm misunderstanding how the code itself flows, or repeats. </p>

<p>Thanks! I can put up the HTML if need be, but I think only the JS will be necessary.</p>

<pre><code>var h, m, s;

window.onload = function startTime() {
    var today = new Date();
    var buttonHasBeenPressed = -1; // -1 = false


    document.getElementById("utcbtn").onclick = function() {
        buttonHasBeenPressed = buttonHasBeenPressed * -1; // reverses value
        console.log(buttonHasBeenPressed);
    }

    if (buttonHasBeenPressed == 1) {
        getUTCTime(today);
    } else {
        getNormalTime(today);
    }

    h = checkTime(h);
    m = checkTime(m);
    s = checkTime(s);


    var timeString = "" + h + ":" + m + ":" + s;
    var colorString = "#" + h + m + s;

    document.getElementById("main").innerHTML = timeString;
    document.getElementById("hexcolor").innerHTML = colorString;
    document.body.style.backgroundColor = colorString;

    var t = setTimeout(startTime, 500);

}

function checkTime(i) {
    if (i &lt; 10) {i = "0" + i};  // add zero in front of numbers &lt; 10
        return i;
}

function getUTCTime(today) {
    h = today.getUTCHours();
    m = today.getUTCMinutes();
    s = today.getUTCSeconds();
}

function getNormalTime(today) {
    h = today.getHours();
    m = today.getMinutes();
    s = today.getSeconds();
}
</code></pre>

<p>Like I said as far as javascript I'm pretty much a novice, so this code probably isn't all that great - suggestions to improve it are always welcome!</p>