strtotime function not returning value needed
<p>I am having a problem getting the code below to work basically what I am doing is checking to see if the value of a time stamp variable that is in 24 hour format is after <code>1:00 PM</code> if it is then convert it to the 12 hour format. When I have the value echoed back it always says 6:00 PM. What is the problem?</p>

<p>Here is how I get the <code>$timeToday</code> variable</p>

<pre><code>$timeToday = date("H:i A");
</code></pre>

<p>Here is the code that is not working correctly:</p>

<pre><code> if ($timeToday&gt;"12:59"){
            $timeConverted = date("h:i A", strtotime($timeToday));
            echo "You clocked out at: " . $timeConverted . "&lt;br&gt;";
        } else {
        echo "You clocked out at: " . $timeToday . "&lt;br&gt;";
        }
</code></pre>
