fix system function dateOffset bug