Php mktime() return wrong value of hour,minute,second . How to fix?
<p>I'm using <code>mktime()</code> to get timestamp of the input date.
Here is my code: </p>

<pre><code>  ` $dayFrom = $this-&gt;request-&gt;getPost('day-from');
    $monthFrom = $this-&gt;request-&gt;getPost('month-from');
    $yearFrom = $this-&gt;request-&gt;getPost('year-from');
    $starttimestamp = mktime(0, 0, 0, $monthFrom, $dayFrom, $yearFrom);
    $endtimestamp = mktime(23, 59, 59, $monthFrom, $dayFrom, $yearFrom);`
</code></pre>

<p>And when i get the result </p>

<p><code>$starttimestamp = 1469829600
$endtimestamp = 1469915999</code></p>

<p>i try to convert it back using <a href="http://www.epochconverter.com/" rel="nofollow">http://www.epochconverter.com/</a> to check if it is correct but it show <code>7/30/2016, 5:00:00</code> for <code>start time</code> and <code>7/31/2016, 4:59:59 AM</code> for <code>end time</code>. </p>

<p>Why is there error with converting the <strong>hours, minutes and seconds</strong> in <code>mktime()</code></p>