We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e12864b commit 3f338d7Copy full SHA for 3f338d7
Tests/Noesis.Javascript.Tests/DateTest.cs
@@ -61,6 +61,9 @@ public void SetAndReadDateTimeUnspecified()
61
[TestMethod]
62
public void CreateCurrentDateInJavaScript()
63
{
64
+ Console.WriteLine("Offset reported by JS: " + _context.Run("new Date().getTimezoneOffset()"));
65
+ Console.WriteLine("Offset reported by C#: " + TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).ToString());
66
+
67
DateTime currentTimeAsReportedByV8 = (DateTime)_context.Run("new Date()");
68
(currentTimeAsReportedByV8 - DateTime.Now).TotalSeconds.Should().BeLessThan(1, "Dates should be mostly equal");
69
}
0 commit comments