Nonlocal effects in temporal metamaterials