FIX: local date trim when no time available (PR #14525)

When there is a blank space in the end of date, moment is returning a different value:

  console.log(moment.tz("2021-09-09 ", "Australia/Sydney").toISOString());
  // 2021-09-09T00:00:00.000Z
  console.log(moment.tz("2021-09-09", "Australia/Sydney").toISOString());
  // 2021-09-08T14:00:00.000Z

GitHub