First day of last month in date function is not working?
<p>I have the below code,</p>

<pre><code>$lastmonthLastDay =   date('Y-m-d', strtotime("last day of last month"));
$lastmonthFirstDay= date('Y-m-d', strtotime("first day of -1 month"));
</code></pre>

<p>Which works exactly in localhost. But when i push this in live always return <code>1970-01-01</code>.</p>

<p>Is there anything i missed in server settings ? kindly advice </p>
