Fix chart date type is different depending on maching