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

Scheduler uses DateTime.Now, should use DateTime.UtcNow #6

Open
IanMercer opened this issue Jan 14, 2012 · 0 comments
Open

Scheduler uses DateTime.Now, should use DateTime.UtcNow #6

IanMercer opened this issue Jan 14, 2012 · 0 comments
Assignees

Comments

@IanMercer
Copy link

DateTime.Now has the unfortunate ability to leap forward or back by an hour twice a year which would mess up the calculation:-

 var currentItems = _scheduledAnnouncements.Where(c => c.Value < now).ToList();

(Scheduler.cs in Jabbot.ConsoleBotHost project)

@ghost ghost assigned sethwebster Jan 15, 2012
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