If you are running a scheduled task, can I assume you mean you run a PHP CLI script from Task Scheduler?
If so you will also have to make the timezone change to the \wamp\bin\php\php5.x.y\php.ini
file so that the CLI also knows that it is running in the New_York time zone.
date.timezone = "America/New_York"