Skip to content

Instantly share code, notes, and snippets.

@tomdavies
Forked from 1stevengrant/config.php
Created November 30, 2012 11:45
Show Gist options
  • Save tomdavies/4175317 to your computer and use it in GitHub Desktop.
Save tomdavies/4175317 to your computer and use it in GitHub Desktop.
Fixes the daylight savings issue with EE
var $dateTime = new DateTime();
$dateTime->setTimezone(new DateTimeZone('America/New_york'));
$dateTime->setTimestamp(time());
$isDst = (bool)$dateTime->format('I') ? "y" : "n";
$conf['daylight_savings'] = $isDst;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment