这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions Logic/ApplicationSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public class ApplicationSettings
private static string _default = "default";

// Application Specific Settings we want to protect
private string _clientVersion = "1.7.2";
private string _clientVersion = "1.7.3";
private string _version = "4";
private int _clientCodeVersion = 106;
private int _clientCodeVersion = 107;

public string ClientVersion { get { return _clientVersion; } }
public string Version { get { return _version; } }
Expand Down Expand Up @@ -170,23 +170,29 @@ public DateTime DownloadStartWindowTime
{
get
{
// Get the local time now and add our Unix timestamp to it.
// We know that the DownloadStartWindow is saved in UTC (GMT to be precise, but no biggie)
DateTime now = DateTime.Now;

// start is now UTC download window start.
DateTime start = unixEpoch.AddMilliseconds(DownloadStartWindow);

// Reset to today
return new DateTime(now.Year, now.Month, now.Day, start.Hour, start.Minute, start.Second);
// Reset to local time, using the H:m:i from the Unix Time.
// This gives us a local time
return new DateTime(now.Year, now.Month, now.Day, start.Hour, start.Minute, start.Second, DateTimeKind.Local);
}
}

public DateTime DownloadEndWindowTime
{
get
{
// See notes from DownloadStartWindowTime
DateTime now = DateTime.Now;
DateTime end = unixEpoch.AddMilliseconds(DownloadEndWindow);

// Reset to today
return new DateTime(now.Year, now.Month, now.Day, end.Hour, end.Minute, end.Second);
return new DateTime(now.Year, now.Month, now.Day, end.Hour, end.Minute, end.Second, DateTimeKind.Local);
}
}

Expand Down
Binary file modified XiboClient.v11.suo
Binary file not shown.
Binary file modified bin/x86/Release/Xibo.scr
Binary file not shown.
Binary file modified bin/x86/Release/XiboClient.XmlSerializers.dll
Binary file not shown.
Binary file modified bin/x86/Release/XiboClient.exe
Binary file not shown.
Binary file modified bin/x86/Release/XiboClient.pdb
Binary file not shown.