<?php
$tz_local = new DateTimeZone( 'America/New_York' );
$tz_gmt = new DateTimeZone( 'UTC' );
$time_gmt = new DateTime( 'now', $tz_gmt );
$offset = $date ? $tz_local->getOffset( $time_gmt ) : -5;