title: Rails and jQuery - How to display a date as same for all time zones?
body: <p>In rails 4 app, I am creating a data and trying to display as graph. When timezone changes then date also will get change, I want date(created date) should be same for all timezone while displaying it.</p>
  
  <p>In database <code>:created_at =&gt; Thu, 28 May 2020 02:12:40 EDT -04:00</code> but in graph <code>May 27</code> is displaying. <code>'Eastern Time (US &amp; Canada)'</code> time zone is using now.</p>
  
  <p>In jQuery:</p>
  
  <pre><code>d = new Date(1590624000 * 1000)
  $.plot.formatDate(d, '%b %d')
  </code></pre>
  
  <p>How can I fix this issue which should work for all timezone? Whether while saving a data or while displaying it (jQuery side)?</p>