hotfix: validate.js correctly uses Date instead of XDate or Moment which are not available