title: PHP Date formatting DST
body: <p>I generate a unix-timestamp in the adminpanel of my site with a modified version of the jquery  datetime-picker.</p>
  
  <p>This timestamp get's saved into a mySQL database and in the frontend I output it via the <code>strftime()</code> function.</p>
  
  <p>As the site has multiple admins and everybody began to add content, I encountered an offset of  1h in the output time, due to the timezone we're in (GMT+1). Because content was already added, I couldn't edit the function which generates the date and writes it to the db, so I had  to edit the output function in the frontend.</p>
  
  <p>I thought it would be clever to just add (myTime+3600) as an argument of the <code>strftime</code> function. Everything worked fine and more content got added. </p>
  
  <p>Now the problem is, that all content assigned a date in april 2013 is an hour to late because of the Daylight saving time.</p>
  
  <p>I only have the timestamp to work with so I somehow need to get whether a date needs the 1h offset or not. Any ideas on how to do that without adding a timezone at the timestamp generating function? </p>
  
  <p>There is a function. </p>
  
  <p>Any recommendations are welcome! </p>
  
  <p><strong>Example</strong>:
  frontend-code:</p>
  
  <pre><code>strftime("%d. %B %Y / %H:%M Uhr",new_timestamp+3600);
  </code></pre>
  
  <p>For 13.March 2013 16:30 I get the correct output.</p>
  
  <p>For 13. April 2013 16:30 I get 17:30</p>