|
@@ -757,6 +757,7 @@ void ShowSummaryPage()
|
|
|
float data;
|
|
|
uint8_t value[10] = {0};
|
|
|
char start_hr[3],start_min[3],end_hr[3],end_min[3];
|
|
|
+ int t_hr;
|
|
|
pDcChargingInfo = (struct ChargingInfoData *)GetDcChargingInfoData(pSysInfo->CurGunSelected);
|
|
|
// Show Money
|
|
|
data = pDcChargingInfo->ChargingFee;
|
|
@@ -774,9 +775,16 @@ void ShowSummaryPage()
|
|
|
GetMinFormTimeString(pDcChargingInfo->StartDateTime,start_min);
|
|
|
GetHrFormTimeString(pDcChargingInfo->StopDateTime,end_hr);
|
|
|
GetMinFormTimeString(pDcChargingInfo->StopDateTime,end_min);
|
|
|
- ChangeDisplay2Value(_Summary_Start_time_hr, atoi(start_hr));
|
|
|
+
|
|
|
+ t_hr = atoi(start_hr) + (ShmDcCommonData->TzOffset / 60);
|
|
|
+ if (t_hr >= 24)
|
|
|
+ t_hr -= 24;
|
|
|
+ ChangeDisplay2Value(_Summary_Start_time_hr, t_hr);
|
|
|
ChangeDisplay2Value(_Summary_Start_time_min, atoi(start_min));
|
|
|
- ChangeDisplay2Value(_Summary_end_time_hr, atoi(end_hr));
|
|
|
+ t_hr = atoi(end_hr) + (ShmDcCommonData->TzOffset / 60);
|
|
|
+ if (t_hr >= 24)
|
|
|
+ t_hr -= 24;
|
|
|
+ ChangeDisplay2Value(_Summary_end_time_hr, t_hr);
|
|
|
ChangeDisplay2Value(_Summary_end_time_min, atoi(end_min));
|
|
|
/*
|
|
|
DisplayValueToLcm(_Summary_Start_time_hr, (uint8_t *)start_hr, sizeof(start_hr));
|
|
@@ -1201,7 +1209,6 @@ int main(void)
|
|
|
_totalCount = pSysConfig->TotalConnectorCount;
|
|
|
_everyPageRollChange = 0;
|
|
|
//Initialization();
|
|
|
- system("export TZ=CST-8");
|
|
|
//printf("_LCM_COMPLETE ");
|
|
|
//ChangeToOtherPage(_LCM_COMPLETE);
|
|
|
//return 0;
|
|
@@ -1215,7 +1222,6 @@ int main(void)
|
|
|
ShmStatusCodeData->AlarmCode.AlarmEvents.bits.LcmModuleCommFail = true;
|
|
|
|
|
|
} else {
|
|
|
-
|
|
|
// Show Default Text
|
|
|
if (!defaulttext) {
|
|
|
ShowCabientVersionDefaultText();
|