xbee transimting problem

hello every one
I am working on a project that has 2 arduino, one that has a keypad and lcd for display and I will be entering numbers, and the other arduino has some sensors that will display the data from.
also I have 2 xbee, one for every arduino.
the task is to enter time from keypad, transmit to the other arduino and in the other arduino the received time will be incremented so it can be like a real clock. and then displaying the sensors values with the correspond time.
Now the problem is since I will only send the time once and the other arduino will do the rest I put the receive code on the setup of code, and the problem is that I should enter the time and start the other arduino at the same exact time for the transmision to be correct, other wise the transmitted time will be trash.
Does any body Now a way to fix this.
Here is part of the codes: [and please ignore the details of h1 h2 m1 and m2 because it is correct and the issue only on the transmission]

Time code:

#include <Keypad.h>
#include <LiquidCrystal.h>

const byte ROWS = 4; //four rows
const byte COLS = 3; //three columns
char keys[ROWS][COLS] = {
{'1','2','3'},
{'4','5','6'},
{'7','8','9'},
{':','0','/'}
};
byte rowPins[ROWS] = {12, 7, 8, 10}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {11,13, 9}; //connect to the column pinouts

Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

char entryStr1[9];
char entryStr2[5];
int l=0;
int minutes,hours;
LiquidCrystal lcd(6, 5, 4, 3, 2, A0);

void setup(){
Serial.begin(57600);
lcd.begin(16, 2);
int i=0;
int l=0;
lcd.setCursor(0, 0);
lcd.print("Date: ");
//Serial.print("Date: ");
while (i!=9) {
char key2 = keypad.getKey();
if (key2 != NO_KEY){
entryStr1*= key2;*

while (l!=5) {

  • lcd.setCursor(1, 1);*

  • lcd.print("Time: ");*

  • //Serial.print('\n'); // New line*

  • //Serial.print("Time :");*

  • while (l!=5) {*
    char key3 = keypad.getKey();

  • if (key3 != NO_KEY){*

  • entryStr2[l]= key3;*

  • l++;*

  • lcd.print(key3);*

  • //Serial.print(key3);*

  • }*

}

  • }*
  • int h1=entryStr2[0]-'0';*
  • int h2=entryStr2[1]-'0';*
  • int m1=entryStr2[3]-'0';*
  • int m2=entryStr2[4]-'0';*
    _ hours=(h110)+h2;_
    _ minutes=(m1
    10)+m2;_
  • String myString1 = String(hours);*
  • String myString2 = String(minutes);*
  • String clk = myString1 + ":" + myString2; *
  • Serial.print(clk);*
  • Serial.print('\n');*
  • delay(1000);*

}
void loop (){

  • if (Serial.available()>0){*
  • Serial.write(Serial.read());*
  • // Serial.print(Serial.read());*
    }

}

----------------------------
Sensor code:
void setup() {

  • Serial.begin(57600);*

  • for (int j =0; j<100 ; j++)*
    {

  • for (int i =0; i<5 ; i++)*
    {
    if (Serial.available()>0){ // Receive if available

clk_= (Serial.read()); // clk*= to get each number of the time separate so I can increament*
* // Serial.print(Serial.read());
//save on string*
//Serial.print(clk);
}
}
}
* int h1=clk[0]-'0';
int h2=clk[1]-'0';
int m1=clk[3]-'0';
int m2=clk[4]-'0';
hours=(h110)+h2;

minutes=(m110)+m2;
myString1 = String(hours);
myString2 = String(minutes);
clkk = myString1 + ":" + myString2;
(xbee is on AT mode)*_