diff --git a/src/app/_layout/footer/footer.component.html b/src/app/_layout/footer/footer.component.html index 164396a..eb553d7 100644 --- a/src/app/_layout/footer/footer.component.html +++ b/src/app/_layout/footer/footer.component.html @@ -13,7 +13,7 @@ href="https://allbestsistem.com/" target="_blank" style="background-color: #000000 !important;" - >Smart Building Management Systems (V@2024-07-4.01) + >Smart Building Management Systems (V@2024-07-4.02)

diff --git a/src/app/content/hemat-app/cost-management/cost-management.component.ts b/src/app/content/hemat-app/cost-management/cost-management.component.ts index dbbaed2..e5b1586 100644 --- a/src/app/content/hemat-app/cost-management/cost-management.component.ts +++ b/src/app/content/hemat-app/cost-management/cost-management.component.ts @@ -95,14 +95,26 @@ export class CostManagementComponent implements OnInit { categoryName: item.category_name, estimationCost: item.estimation_cost, totalUse: item.total_use, - endDate: item.end_date, + endDate: this.convertToUTC7(item.end_date), + // endDate: item.end_date, statusId: item.status_id, categoryId: item.category_id, roomId: item.room_id, })); + console.log(this.data_cost); + }); } + convertToUTC7(dateString: string): string { + const date = new Date(dateString); + const utc7Offset = 7 * 60; // UTC+7 in minutes + const localOffset = date.getTimezoneOffset(); + const totalOffset = utc7Offset - localOffset; + const utc7Date = new Date(date.getTime() + totalOffset * 60 * 1000); + return utc7Date.toISOString(); + } + dataListMaster() { this.monitoringApiService.getMasterListData().subscribe((data) => { const dataCategory = data.data.find( @@ -431,15 +443,15 @@ export class CostManagementComponent implements OnInit { this.spinnerExportActive = true; setTimeout(() => { const columnsToExport = [ - "name", - "room_name", - "category_name", - "total_use", - "estimation_cost", - "end_date", + "building", + "roomName", + "categoryName", + "totalUse", + "estimationCost", + "endDate", ]; this.tableexcelService.exportAsExcelFileCostManage( - this.filteredRows, + this.data_cost, "Smart_building_cost_management", columnsToExport ); diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html index adee37a..bc1d2a4 100644 --- a/src/app/login/login.component.html +++ b/src/app/login/login.component.html @@ -138,7 +138,7 @@

- (v@2024.07.4.01) + (v@2024.07.4.02)