Comments (13)
Feel free to edit your ntp.hosts
file to contain the hosts you want.
from ios-ntp.
Hi Gavin!
The problem is when pod is updated (pod update
) the changes I did in ntp.hosts
will be lost.
from ios-ntp.
Would you want the ntp.hosts
removed from the pod? That way it won't get overwritten, but neither will it get added in the first place. If the file is not there, the code deals with that by using a default, built-in list of NTP hosts comprised of the global and continental pools.
I'd be interested in other peoples' thoughts on this to help me decide if this would be OK.
from ios-ntp.
I think you can exclude ntp.hosts
file from pod if that doesn't break anything in the logic (which should be true taking into consideration your post above). But I suggest to highlight the opportunity of embedding own ntp.hosts
in the README file more clearly.
UPD: By the way, adding some text in README that your repo supports CocoaPods would be a perfection :)
from ios-ntp.
Hi @coffellas-cto!
I think if I exclude ntp.hosts
from pod, in the next pod update
it will be added again. :/
from ios-ntp.
Nobody is asking for ntp.hosts
to be kept in the pod, and removing it will not change the behavior of the library, so I will remove it. I will also, as suggested, improve the README remarks related to this file, and to the fact it supports CocoaPods.
I'll report in this thread when these changes are finished ..
from ios-ntp.
It sounds good! ;)
from ios-ntp.
Done .. "ios-ntp 1.1.1" has been pushed. Let me know if this satisfies.
Notes: If you want to use your own ntp.hosts
file, put it in your application main bundle. You may have to remove ntp.hosts
from the library files yourself the first time, it won't be refreshed by CocoaPods, but I don't know if it'll be removed either.
from ios-ntp.
Worked like a charm. :)
from ios-ntp.
Is not working anymore. :/
In my tests, the network clock is wrong about few minutes.
I have reviewed your commit multiple times and I didn't found anything weird.
Downgrading solve the problem.
from ios-ntp.
Huh?! Is this with a new ntp.hosts
file, or the default time servers? If new, what time server? What does the following command show in Terminal (with your hostname obviously) ?
sntp -d time.apple.com
from ios-ntp.
I tried default servers (removing ntp.hosts
) and ntp.hosts
with the same value of the old one.
Very weird.
from ios-ntp.
I'm puzzled too. I've also been promising to audit this code and simplify some details for ages, so it seems I must do that soon. I keep starting these improvements and getting distracted by other projects.
from ios-ntp.
Related Issues (20)
- iOS-ntp returning same value as device HOT 4
- Question for one-time check HOT 4
- Watching possible issue in CocoaAsyncSocket code
- Cocoa Pods released version HOT 1
- Hardcoded NTP Pool names HOT 13
- import error HOT 1
- EXC_BAD_ACCESS HOT 6
- What is missing from RFC 5905 HOT 2
- Grabbing ntpClientRecvTime Twice HOT 1
- Ability to Change the Time Servers Without Reboot
- Account for Packet Loss in One-Off Mode HOT 1
- Any update for cocoapod, version is still 1.1.1 HOT 2
- v1.1.7 updates coming soon .. HOT 1
- when not network to network, error: " dnssd_clientstub deliver_request ERROR:"
- Does not compile because of lacking GCDAsyncUpdSocket HOT 3
- 该网络时间从哪来?
- 有啥用呢? HOT 1
- How to get the accurate network time after modifying the system time HOT 13
- demo clock is wrong HOT 5
- Whether the poll interval can be automatically increase?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-ntp.