Merge pull request #208 from 67P/bugfix/204-reimbursement_form

Fix timezone issue in expense item form
This commit was merged in pull request #208.
This commit is contained in:
Râu Cao authored and GitHub committed 2022-12-30 22:24:43 +07:00
commit 0b79d48be9
1 file changed
+4 -1
+4 -1
View File
@@ -63,7 +63,10 @@ export default class AddExpenseItemComponent extends Component {
let dateInput = (this.date instanceof Array) ?
this.date[0] : this.date;
const [ date ] = dateInput.toISOString().split('T');
const [ date ] = moment(dateInput).utcOffset(0, true)
.toISOString()
.split('T');
const isValid = this.validateForm();
if (!isValid) return false;