public synchronized Date setStartDate(Date time)
    {
        if ((m_startTime != null) && (m_endTime != null) && (time != null))
        {   // As a default, shift the end date the same distance as the start date
            long lChange = time.getTime() - m_startTime.getTime();
            m_endTime = new Date(m_endTime.getTime() + lChange);
        }
        m_startTime = time;
        return this.getStartDate();
    }
public synchronized Date setStartDate ( Date time ) { if ( ( m_startTime != null ) && ( m_endTime != null ) && ( time != null ) ) { long lChange = time . getTime ( ) - m_startTime . getTime ( ) ; m_endTime = new Date ( m_endTime . getTime ( ) + lChange ) ; } m_startTime = time ; return this . getStartDate ( ) ; }
Change the start time of this service.
First, move the item on the screen, then call the method to change the remote data.