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

Does not protect against DST changes / clock going backwards #1

Open
RobThree opened this issue Feb 9, 2016 · 2 comments
Open

Does not protect against DST changes / clock going backwards #1

RobThree opened this issue Feb 9, 2016 · 2 comments

Comments

@RobThree
Copy link

RobThree commented Feb 9, 2016

When clock goes back (DST change) there's a real possibility of generating duplicate ID's. Suggestion: use a strictly increasing (monotonic) time source (this one for example).

Full disclosure: I'm the developer of IdGen which is a similar project.

@rvhuang
Copy link
Owner

rvhuang commented Feb 26, 2016

@RobThree does DST affect DateTime.UtcNow?

@RobThree
Copy link
Author

No, but any corrections made by NTP for example (which Windows does by default) will affect the time (possibly several times a day) and then there's leap seconds and all kinds of other horrible messy things people "invent" to keep track of "time". Wallclock time, which DateTime.UtcNow (and DateTime.Now) is, is not usable for this kind of applications.

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