fix datetime error in sync