Skip to content

Commit

Permalink
Update FeedWriter.cs - use UtcNow for feed/updated timestamp (#2)
Browse files Browse the repository at this point in the history
The timestamp in the 
<feed>
<updated>TIMESTAMP</updated>
...
</feed>
element was generated via DateTime.Now but rendered with a Z (zulu) suffix. 
Corrected so that DateTime.UtcNow is used.
  • Loading branch information
ensign-nemo authored and madskristensen committed Dec 10, 2018
1 parent df468f1 commit 1974071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FeedWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public string GetFeed(string fileName, IEnumerable<Package> packages)

writer.WriteElementString("title", "VSIX Gallery");
writer.WriteElementString("id", "5a7c2525-ddd8-4c44-b2e3-f57ba01a0d81");
writer.WriteElementString("updated", DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ssZ"));
writer.WriteElementString("updated", DateTime.UtcNow.ToString("yyyy-MM-ddTHH:mm:ssZ"));
writer.WriteElementString("subtitle", "Add this feed to Visual Studio's extension manager from Tools -> Options -> Environment -> Extensions and Updates");

writer.WriteStartElement("link");
Expand Down Expand Up @@ -105,4 +105,4 @@ private void AddEntry(XmlWriter writer, Package package, string baseUrl)
writer.WriteEndElement(); // entry
}
}
}
}

0 comments on commit 1974071

Please sign in to comment.