I'm looking to compare the client's system time (using javascript) with the server's time (in C#). Currently I'm grabbing the client's time using:
var d = new Date();
var time = d.getTime();
which returns the times in milliseconds since some date.
Then I'm running DateTime.Now
on the server to get it's time. This is the last thing done on the client and the first thing done on the server. The difference will then be added as an element to the browser fingerprint.
I'm not sure if this is the best way to be finding these times, or what the best way is to compare these to times are. I'm looking for a way to compare the difference in milliseconds of the time I got from the client and the time I got from the server, whether that be through converting the different formats of time I get, or requesting the time differently.