Go Down

Topic: Problem with AdjustTime in Time Library (Read 1 time) previous topic - next topic

TimService


I have been using the Time library for a while now and would like to thank you for your work on this.
One thing I did find is that if I use setSyncInterval and adjustTime that the sync interval does not get adjusted but the current time does.  I live in the eastern time zone (-5 hours).  So if I want to sync time every say 5 minutes, but call adjustTime after I have set this sync-interval, I will wait 5 hours and 5 minutes.  So I changed adjustTime to also adjust nextSyncTime.  There also seemed to be some odd bracket grouping in the now() function.  I have not set a SyncProvider (I am using a NIST server and could not rework the code to be able to have a function that conformed to getExternalTime prototype).  So I check timeStatus now and then to see if I need to resync with the NIST server.  All is working nicely,

If this has already been corrected I was not able to find it.

Thank you
Tim

Go Up