Date is not saving properly in mysql with NodeJS (one day lesser than real date)
<p>I have created rest server using Node.JS and ExpressJS. Database is MySQL.
I'm passing date as follows from the frontend.</p>

<blockquote>
  <p>2016-7-26</p>
</blockquote>

<p>And when I go to the database,it's saved like this. As the following :</p>

<blockquote>
  <p>2016-07-26 00:00:00</p>
</blockquote>

<p>Because mysql date format is timestamp. And when I take the result from REST ruls, I get a date like this.</p>

<blockquote>
  <p>"2016-07-25T18:30:00.000Z"</p>
</blockquote>

<p>I saved 26. But here I get 25. What's the reason for this ? Timezones ? Please tell me how to fix this issue.</p>