Hi All,

I've been trying to figure out how to get the clock setting correct. 
That is, I would like it to be consistent with what the Dallas/Maxim 
OneWireViewer reports.

I think I may have solved it, but it depends on what is expected.

OneWireViewer expects to see the clock in the Thermochron to be set to 
local time.

The changes I made to ow_1921.c were to replace the 3 occurrences of 
gmtime_r() with localtime_r() and add/subtract 1 as appropriate to 
correct for the zero start of the month in struct tm (i.e. the output of 
localtime_r()).

Now, when reading clock/udate I get unix time (in GMT) and when reading
clock/date I get local time. The Thermochron RTC is set to local time 
and reports as such with OneWireViewer. My question is: Is this the 
expected behaviour? Or is it expected that both udate and date return 
GMT? Do you expect the Thermochron RTC to be set to GMT?

Regards
Arthur

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to