Skip to content

Commit

Permalink
set network time
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyCross committed Nov 20, 2013
1 parent 2007b74 commit eae62ad
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion TestRunner/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
using Microsoft.SPOT;
using System;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using Microsoft.SPOT.Net.NetworkInformation;
using netmfazurestorage.NTP;
using netmfazurestorage.Tests;

namespace netmfazurestorage.TestRunner
Expand All @@ -22,6 +25,12 @@ public static void Main()
Debug.Print("Interface set to " + networkInterface.IPAddress);
}

if (DateTime.Now < new DateTime(2012, 01, 01))
{
var networkTime = NtpClient.GetNetworkTime();
Utility.SetLocalTime(networkTime);
}

var queueTests = new QueueTests(AccountName, AccountKey);
queueTests.Run();

Expand Down

0 comments on commit eae62ad

Please sign in to comment.