add comment

This commit is contained in:
Matthew Brown 2022-11-26 17:19:10 +00:00
parent e77f8c1c65
commit b82129af00

View File

@ -119,8 +119,9 @@ namespace Bloxstrap.Helpers
{ {
string channelUrl = BuildBaseUrl(channel); string channelUrl = BuildBaseUrl(channel);
HttpResponseMessage pkgMessage = await Program.HttpClient.GetAsync($"{channelUrl}/{clientVersion.VersionGuid}-rbxPkgManifest.txt"); // get an approximate deploy time from rbxpkgmanifest's last modified date
if (pkgMessage.Content.Headers.TryGetValues("last-modified", out var values)) HttpResponseMessage pkgResponse = await Program.HttpClient.GetAsync($"{channelUrl}/{clientVersion.VersionGuid}-rbxPkgManifest.txt");
if (pkgResponse.Content.Headers.TryGetValues("last-modified", out var values))
{ {
string lastModified = values.First(); string lastModified = values.First();
clientVersion.Timestamp = DateTime.Parse(lastModified); clientVersion.Timestamp = DateTime.Parse(lastModified);