Fixed Visual Studio 2012 warnings
Fixed daylight savings time formatting problem on Windows
Merge pull request #252 from breyed/visual-studio

Fixed Visual Studio 2012 warnings and formatting