This project is read-only.

Bug in Timeline.cs w/regards to AM vs. PM?

Topics: Information Provided, Suggestion
Nov 25, 2008 at 10:44 PM
While adapting the Timeline implementation from dasBlog, I ran into an issue with the DATEFORMAT string in Timeline.cs. I've copied the line verbatim below:
const string DATEFORMAT = @"MMM dd yyyy hh\:mm\:ss \G\M\T";
If I have 2 events, one at "1/1/2008 1:00 AM" and the other at "1/1/2008 1:00 PM", this conversion string is going to be "Jan 01 2008 01:00:00 GMT" for both. I believe this needs to be modified to read:
const string DATEFORMAT = @"MMM dd yyyy HH\:mm\:ss \G\M\T";
At least, it worked for me.