OK, frist of all: thank you for your reply!
the rtc module is an "Arduino Tiny RTC DS1307 Shield V2.0 Without DS18B20" that can be found on
www.emartee.com.
the ethernet shield is "Ethernet Shield 05 for Arduino UNO, Mega, 1280, 2560, use w5100" found on ebay.
the code is very simple:
#include <Wire.h>
#include <Time.h>
#include <DS1307RTC.h>
time_t timeNow;
void setup() {
pinMode(4, OUTPUT);
digitalWrite(4, HIGH);
Serial.begin(9600);
}
void loop()
{
timeNow = (DS1307RTC::get());
Serial.print(day(timeNow));
Serial.print(":");
Serial.print(month(timeNow));
Serial.print(":");
Serial.print(year(timeNow));
Serial.println();
delay(100);
}
When the rtc module is connected only to the arduino uno, the code print the correct date but with ethernet shield the value is uncorrect.
time and date of the ds1307 was set frist.
thanks.