Fixed Visual Studio 2012 warnings and formatting

Fixed daylight savings time formatting problem on Windows