Fix date marshaling.