davidfowl/Jabbot

Scheduler uses DateTime.Now, should use DateTime.UtcNow

IanMercer opened this issue · 0 comments

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)