Quintiq file version 2.0
#parent: #root
Method PTF_ConvertDateTimeInPTFPanelBasedOnClientTimeZone () id:Method_LibPTF_pnlTestController_PTF_ConvertDateTimeInPTFPanelBasedOnClientTimeZone
{
  #keys: '[131464.1.879677631]'
  Body:
  [*
    // Convert date time in start/end time label and test script execution string list
    startTimeString := lblStartTime.Text();
    endTimeString   := lblEndTime.Text();
    
    // convert start time
    if( startTimeString <> "N/A" )
    {
      lblStartTime.Text( this.PTF_ConvertDateTimeStringToSelectedClientTimezone( startTimeString ) );
    }
    
    // convert end time
    if( endTimeString <> "N/A" )
    {
      lblEndTime.Text( this.PTF_ConvertDateTimeStringToSelectedClientTimezone( endTimeString ) );
    }
    
    // convert datetime value in test script execution string list
    this.PTF_ConvertDateTimeInTestScriptExecutionStringList();
    
    // Update client timezone ID and offset
    lblClientTimezoneOffset.Text( this.PTF_GetClientTimeZoneOffset() );
    lblLastClientTimeZone.Text( Application::SessionTimeZone().ID() );
  *]
}
