Fix timezone issue in expense item form #208
@@ -63,7 +63,10 @@ export default class AddExpenseItemComponent extends Component {
|
|||||||
|
|
||||||
let dateInput = (this.date instanceof Array) ?
|
let dateInput = (this.date instanceof Array) ?
|
||||||
this.date[0] : this.date;
|
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();
|
const isValid = this.validateForm();
|
||||||
if (!isValid) return false;
|
if (!isValid) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user