-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Is there a way to set the time offset automatically #40
Comments
NTP itself can't handle timezones nor daylight saving times. That's normally the job of the operating system. What you can do, however, since the daylight savings occur in specific period of time (october 15 to february 17 here) you can just validate the output the DD/MM and adjust the offset accordingly. Or you can just use the Timezone library. |
I've tried using the TimeOffset parameter in both Constructor and setTimeOffset(). Both does NOT work :( |
Some time ago i looked at "Arduino weather station/colour" which used time
zone library. Perhaps this will provide what you need...google 'arduino
weather station time zone'
…On Sun, Jun 24, 2018, 16:39 jagganath69 ***@***.***> wrote:
I've tried using the TimeOffset parameter in both Constructor and
setTimeOffset(). Both does NOT work :(
It still outputs the same time (GMT-2, I think)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC_Oka0Jex6TBvDZ-Gilza2Jc4s62RoVks5t_zQggaJpZM4PZ7uN>
.
|
This may help. This function looks for the last sunday of a month and returns the utc. You may refine it for the correct hour that the change occurs. t=now(); ... |
Windows 10 cannot do it either. So, fix it yourself and good luck. |
I live in an area with Daylight Saving and thus the time offset changes twice a year at different dates each years.
I was wondering how one could automatise the changes.
The text was updated successfully, but these errors were encountered: