Jabbot icon indicating copy to clipboard operation
Jabbot copied to clipboard

Scheduler uses DateTime.Now, should use DateTime.UtcNow

Open IanMercer opened this issue 13 years ago • 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)

IanMercer avatar Jan 14 '12 22:01 IanMercer