ohhopi:
Indeed while copying the code I added a "z" in it but it "works" here it is with the same bug i was talking about earlier :
Hi Ohhopi,
So I understand you still get the same feed back from Serial: "ntp server update failed"
What did you try to find where the bug is? Did you try my suggestion to start from a tested working example and seeing when it starts failing? Another good thing to do is add a lot of debug printouts. So everytime you think your code does something the Serial prints this out for you so you are sure it is actually the way you expect it to be.
One thing I see that is probably not right is this:
in getTimeAndDate() :
sendNTPpacket(timeServer);
delay(1000);
Which means you are doing this request every second. According to this pagehttp://tf.nist.gov/tf-cgi/servers.cgi you shouldn't query the servers more than once every 4 seconds. You'll see in the UDPNTPClient example that they wait 10 seconds between each call.