This patch uses intval around $is_daylight_saving_time so we always get a valid JSON object and also prevent the PHP Warning about the parameter type.