Skip to content

Instantly share code, notes, and snippets.

@pvledoux
Forked from 1stevengrant/config.php
Created October 29, 2012 13:02
Show Gist options
  • Save pvledoux/3973410 to your computer and use it in GitHub Desktop.
Save pvledoux/3973410 to your computer and use it in GitHub Desktop.

Revisions

  1. @1stevengrant 1stevengrant created this gist Oct 28, 2012.
    5 changes: 5 additions & 0 deletions config.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    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;