title: PHP date format issue while converting to big int
body: <p>I want to store two dates as of type big int to database I have an array which is serialized and sent array values to second form and array consists of </p>
  
  <pre><code>[checkin] =&gt; 01-07-2015
  [checkout] =&gt; 03-07-2015
  </code></pre>
  
  <p>After converting this using </p>
  
  <pre><code>$arr['checkin'] = strtotime($arr['checkin']);
  $arr['checkout'] = strtotime($arr['checkout']);
  </code></pre>
  
  <p>I'm getting value as <code>1435689000 1435861800</code> respectively, which are one day less than actual date values.</p>
  
  <p>and just to inform in my server if my code is </p>
  
  <pre><code>&lt;?php echo date('d-m-y', '1435689000');?&gt;
  </code></pre>
  
  <p>then the output will be <code>01-07-15</code>, and if I tried to use <code>gmdate</code> function as follows</p>
  
  <pre><code>echo gmdate('d-m-y', '1435689000');
  </code></pre>
  
  <p>The output will be <code>30-06-15</code></p>
  
  <p>I am not able to figure out what is the issue is will you please help. Thank you..</p>