From e04c0afbf901e12ca8cecc397c7ec0763d883e20 Mon Sep 17 00:00:00 2001 From: MadhuMosip Date: Thu, 22 Feb 2024 12:20:57 +0530 Subject: [PATCH] MOSIP-21335 displaying local time instead of UTC Signed-off-by: MadhuMosip --- .../masterdataupload/singleview/singleview.component.html | 2 +- .../masterdataupload/singleview/singleview.component.ts | 2 ++ .../packetdataupload/singleview/singleview.component.html | 2 +- .../packetdataupload/singleview/singleview.component.ts | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/admin-ui/src/app/features/bulkupload/masterdataupload/singleview/singleview.component.html b/admin-ui/src/app/features/bulkupload/masterdataupload/singleview/singleview.component.html index bfd07eeb..c871dda8 100644 --- a/admin-ui/src/app/features/bulkupload/masterdataupload/singleview/singleview.component.html +++ b/admin-ui/src/app/features/bulkupload/masterdataupload/singleview/singleview.component.html @@ -48,7 +48,7 @@

{{data.transcationId}}

Date and Time - +
diff --git a/admin-ui/src/app/features/bulkupload/masterdataupload/singleview/singleview.component.ts b/admin-ui/src/app/features/bulkupload/masterdataupload/singleview/singleview.component.ts index 0a5ef5a9..9b61e528 100644 --- a/admin-ui/src/app/features/bulkupload/masterdataupload/singleview/singleview.component.ts +++ b/admin-ui/src/app/features/bulkupload/masterdataupload/singleview/singleview.component.ts @@ -18,6 +18,7 @@ export class SingleviewComponent { tableNames = [{ id:"applicant_valid_document", value:"ApplicantValidDocument"}, { id:"appl_form_type", value:"Application"}, { id:"biometric_attribute", value:"BiometricAttribute"}, { id:"biometric_type", value:"BiometricType"}, { id:"blacklisted_words", value:"BlacklistedWords"}, { id:"daysofweek_list", value:"DaysOfWeek"}, { id:"device_master", value:"Device"}, { id:"registered_device_master", value:"DeviceRegister"}, { id:"device_spec", value:"DeviceSpecification"}, { id:"device_type", value:"DeviceType"}, { id:"doc_category", value:"DocumentCategory"}, { id:"doc_type", value:"DocumentType"}, { id:"dynamic_field", value:"DynamicField"}, { id:"reg_exceptional_holiday", value:"ExceptionalHoliday"}, { id:"foundational_trust_provider", value:"FoundationalTrustProvider"}, { id:"gender", value:"Gender"}, { id:"loc_holiday", value:"Holiday"}, { id:"identity_schema", value:"IdentitySchema"}, { id:"id_type", value:"IdType"}, { id:"individual_type", value:"IndividualType"}, { id:"language", value:"Language"}, { id:"location", value:"Location"}, { id:"loc_hierarchy_list", value:"LocationHierarchy"}, { id:"machine_master", value:"Machine"}, { id:"machine_spec", value:"MachineSpecification"}, { id:"machine_type", value:"MachineType"}, { id:"module_detail", value:"ModuleDetail"}, { id:"mosip_device_service", value:"MOSIPDeviceService"}, { id:"reason_category", value:"ReasonCategory"}, { id:"reason_list", value:"ReasonList"}, { id:"reg_exceptional_holiday", value:"RegExceptionalHoliday"}, { id:"registered_device_master", value:"RegisteredDevice"}, { id:"registration_center", value:"RegistrationCenter"}, { id:"reg_center_device", value:"RegistrationCenterDevice"}, { id:"reg_center_machine", value:"RegistrationCenterMachine"}, { id:"reg_center_machine_device", value:"RegistrationCenterMachineDevice"}, { id:"reg_center_type", value:"RegistrationCenterType"}, { id:"reg_center_user", value:"RegistrationCenterUser"}, { id:"reg_center_user_machine", value:"RegistrationCenterUserMachine"}, { id:"reg_device_sub_type", value:"RegistrationDeviceSubType"}, { id:"reg_device_type", value:"RegistrationDeviceType"}, { id:"reg_working_nonworking", value:"RegWorkingNonWorking"}, { id:"schema_def", value:"SchemaDefinition"}, { id:"template", value:"Template"}, { id:"template_file_format", value:"TemplateFileFormat"}, { id:"template_type", value:"TemplateType"}, { id:"title", value:"Title"}, { id:"user_detail", value:"UserDetails"}, { id:"valid_document", value:"ValidDocument"}, { id:"zone", value:"Zone"}, { id:"zone_user", value:"ZoneUser"}]; subscribed: any; data : any; + localDate:any; constructor( private bulkuploadService: BulkuploadService, private location: Location, @@ -46,6 +47,7 @@ export class SingleviewComponent { console.log(response); if (response != null) { this.data = response; + this.localDate = new Date(this.data.timeStamp + "z").toLocaleString(); } }); } diff --git a/admin-ui/src/app/features/bulkupload/packetdataupload/singleview/singleview.component.html b/admin-ui/src/app/features/bulkupload/packetdataupload/singleview/singleview.component.html index 18d068ee..8225090b 100644 --- a/admin-ui/src/app/features/bulkupload/packetdataupload/singleview/singleview.component.html +++ b/admin-ui/src/app/features/bulkupload/packetdataupload/singleview/singleview.component.html @@ -40,7 +40,7 @@

{{data.transcationId}}

{{'packet-upload.singleView.dataAndTime-txt'|translate}} - +
diff --git a/admin-ui/src/app/features/bulkupload/packetdataupload/singleview/singleview.component.ts b/admin-ui/src/app/features/bulkupload/packetdataupload/singleview/singleview.component.ts index 39685127..e702c5f1 100644 --- a/admin-ui/src/app/features/bulkupload/packetdataupload/singleview/singleview.component.ts +++ b/admin-ui/src/app/features/bulkupload/packetdataupload/singleview/singleview.component.ts @@ -19,6 +19,7 @@ export class SingleviewComponent { tableNames = [{ id: 'applicant_valid_document', value: 'ApplicantValidDocument'}, { id: 'appl_form_type', value: 'Application'}, { id: 'biometric_attribute', value: 'BiometricAttribute'}, { id: 'biometric_type', value: 'BiometricType'}, { id: 'blacklisted_words', value: 'BlacklistedWords'}, { id: 'daysofweek_list', value: 'DaysOfWeek'}, { id: 'device_master', value: 'Device'}, { id: 'registered_device_master', value: 'DeviceRegister'}, { id: 'device_spec', value: 'DeviceSpecification'}, { id: 'device_type', value: 'DeviceType'}, { id: 'doc_category', value: 'DocumentCategory'}, { id: 'doc_type', value: 'DocumentType'}, { id: 'dynamic_field', value: 'DynamicField'}, { id: 'reg_exceptional_holiday', value: 'ExceptionalHoliday'}, { id: 'foundational_trust_provider', value: 'FoundationalTrustProvider'}, { id: 'gender', value: 'Gender'}, { id: 'loc_holiday', value: 'Holiday'}, { id: 'identity_schema', value: 'IdentitySchema'}, { id: 'id_type', value: 'IdType'}, { id: 'individual_type', value: 'IndividualType'}, { id: 'language', value: 'Language'}, { id: 'location', value: 'Location'}, { id: 'loc_hierarchy_list', value: 'LocationHierarchy'}, { id: 'machine_master', value: 'Machine'}, { id: 'machine_spec', value: 'MachineSpecification'}, { id: 'machine_type', value: 'MachineType'}, { id: 'module_detail', value: 'ModuleDetail'}, { id: 'mosip_device_service', value: 'MOSIPDeviceService'}, { id: 'reason_category', value: 'ReasonCategory'}, { id: 'reason_list', value: 'ReasonList'}, { id: 'reg_exceptional_holiday', value: 'RegExceptionalHoliday'}, { id: 'registered_device_master', value: 'RegisteredDevice'}, { id: 'registration_center', value: 'RegistrationCenter'}, { id: 'reg_center_device', value: 'RegistrationCenterDevice'}, { id: 'reg_center_machine', value: 'RegistrationCenterMachine'}, { id: 'reg_center_machine_device', value: 'RegistrationCenterMachineDevice'}, { id: 'reg_center_type', value: 'RegistrationCenterType'}, { id: 'reg_center_user', value: 'RegistrationCenterUser'}, { id: 'reg_center_user_machine', value: 'RegistrationCenterUserMachine'}, { id: 'reg_device_sub_type', value: 'RegistrationDeviceSubType'}, { id: 'reg_device_type', value: 'RegistrationDeviceType'}, { id: 'reg_working_nonworking', value: 'RegWorkingNonWorking'}, { id: 'schema_def', value: 'SchemaDefinition'}, { id: 'template', value: 'Template'}, { id: 'template_file_format', value: 'TemplateFileFormat'}, { id: 'template_type', value: 'TemplateType'}, { id: 'title', value: 'Title'}, { id: 'user_detail', value: 'UserDetails'}, { id: 'valid_document', value: 'ValidDocument'}, { id: 'zone', value: 'Zone'}, { id: 'zone_user', value: 'ZoneUser'}]; subscribed: any; data: any; + localDate:any; constructor( private bulkuploadService: BulkuploadService, private location: Location, @@ -47,6 +48,7 @@ export class SingleviewComponent { console.log(response); if (response != null) { this.data = response; + this.localDate = new Date(this.data.timeStamp + "z").toLocaleString(); } }); }