From 84c107f66b1f53dda44b0fba5a1e07d754d68ab9 Mon Sep 17 00:00:00 2001 From: Shiuan Date: Tue, 3 Aug 2021 14:27:07 -0500 Subject: [PATCH] fixed issue: edit time in lab --- frontend/src/pages/LabCreate/LabCreate.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/LabCreate/LabCreate.vue b/frontend/src/pages/LabCreate/LabCreate.vue index 1774314..036a4b3 100644 --- a/frontend/src/pages/LabCreate/LabCreate.vue +++ b/frontend/src/pages/LabCreate/LabCreate.vue @@ -329,8 +329,8 @@ export default { courseId: this.courseId, title: this.title, description: this.description, - startTime: moment(this.date + " " + this.startTime).utc().format(), - endTime: moment(this.date + " " + this.endTime).utc().format(), + startTime: moment.utc(this.date + " " + this.startTime).local(), + endTime: moment.utc(this.date + " " + this.endTime).local(), assetList: this.selectedAssetList.map(asset => asset.assetId), build: this.buildScope + '/' + this.build })