Setting date time on upload

New members questions
Post Reply
catman78
Posts: 31
Joined: Thu Aug 16, 2012 10:06 am

Setting date time on upload

Post by catman78 »

How do I set the date and time to NOW when I load file
I cannot get the toggle switch to accept "OK" when I press it using date/time menu. PITA...

If I reboot the time is still off by 20 minutes
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Setting date time on upload

Post by rimai »

do you have wifi?
Roberto.
catman78
Posts: 31
Joined: Thu Aug 16, 2012 10:06 am

Re: Setting date time on upload

Post by catman78 »

no wifi
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Setting date time on upload

Post by rimai »

Try this:

Code: Select all

    setTime(1348672140);  // Unix time
    now();
    ReefAngel.RTC.set(now());
Roberto.
Post Reply