Fix date saved in a bad format