Replaced time() with a string representation of current time as first parameter in a new DateTime object in the sitemap.