Skip to content
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

setDateTime with epoc unixtime unexpected behavior #18

Open
erikyo opened this issue Apr 29, 2018 · 1 comment
Open

setDateTime with epoc unixtime unexpected behavior #18

erikyo opened this issue Apr 29, 2018 · 1 comment

Comments

@erikyo
Copy link

erikyo commented Apr 29, 2018

First of all I want to congratulate this library really well done, but I found for a small problem that I had to correct to make my sketch work properly.

If you "setDateTime()" with an Epoc Unix Timestamp the time you set in the watch is one hour earlier than I wanted.
I think the problem is due to the fact that 946681200 (master/DS3231.cpp line 90) corresponds to "GMT: Friday, December 31, 1999 11:00 pm PM" and not to the 0 of 1 January.

It would also be interesting to implement the timezone since unix epoc is always UTC.

Thanks, Erik

@kurt-klingbeil
Copy link

also, I see no way to get unixtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants