Go Down

Topic: RTC.adjust not correct (Read 1 time) previous topic - next topic

RickTrias

i am using a clock, and some times i have to ajust a little.
i use
RTC.adjust(DateTime(__DATE__, __TIME__));

for it in my sketch.
i tried that today, but time is not set correctly to the time of my chromebook.
it was set 2 hours earlier. (is it set to UTC ?)

sandeepmistry

Hi @RickTrias

Since sketches are compiled on the Create servers, the __DATE___ and __TIME__ values will be based on their time zone. Which I believe is UTC time.

Go Up