Use static method instead of making it look worse
This commit is contained in:
@@ -17,11 +17,8 @@ namespace MFACodeGenerator
|
||||
{
|
||||
try
|
||||
{
|
||||
NtpClient.NtpConnection client
|
||||
= new NtpConnection("pool.ntp.org");
|
||||
var NetDate = client.GetUtc();
|
||||
|
||||
var diff = NetDate - DateTime.UtcNow;
|
||||
var diff = NtpConnection.Utc() -
|
||||
DateTime.UtcNow;
|
||||
|
||||
if (Math.Abs(diff.Seconds) >= 60)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user