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
```
|
||
|---|---|---|
| .. | ||
| assets | ||
| config | ||
| lib/discourse_local_dates | ||
| spec | ||
| test/javascripts | ||
| plugin.rb | ||