mirror of
https://github.com/discourse/discourse.git
synced 2025-03-10 17:07:24 +08:00

When there is a blank space in the end of date, moment is returning a different value: ```javascript 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 ```