Fixed compilation error on Windows (MSVC) in XmlFormatter.h

ctime_r() function used to format date was not available on Windows. Fixed the code to make it work both on Windows and on *nix.