updated date_helper.php

optimized the if condition by removing nested if and replacing with a single if with && in gmt_to_local function.