Skip to content

Commit b9a95a3

Browse files
committed
[dotnet] Fixed parsing of the year in ConsoleApiCalledEventArgs cdp event args
Fixes #13654
1 parent 1cfe991 commit b9a95a3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dotnet/src/webdriver/DevTools/v120/V120JavaScript.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private void OnRuntimeConsoleApiCalled(object sender, ConsoleAPICalledEventArgs
175175

176176
var wrapped = new ConsoleApiCalledEventArgs()
177177
{
178-
Timestamp = new DateTime(1979, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddMilliseconds(e.Timestamp),
178+
Timestamp = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddMilliseconds(e.Timestamp),
179179
Type = e.Type,
180180
Arguments = args.AsReadOnly()
181181
};

dotnet/src/webdriver/DevTools/v121/V121JavaScript.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private void OnRuntimeConsoleApiCalled(object sender, ConsoleAPICalledEventArgs
175175

176176
var wrapped = new ConsoleApiCalledEventArgs()
177177
{
178-
Timestamp = new DateTime(1979, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddMilliseconds(e.Timestamp),
178+
Timestamp = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddMilliseconds(e.Timestamp),
179179
Type = e.Type,
180180
Arguments = args.AsReadOnly()
181181
};

dotnet/src/webdriver/DevTools/v122/V122JavaScript.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private void OnRuntimeConsoleApiCalled(object sender, ConsoleAPICalledEventArgs
175175

176176
var wrapped = new ConsoleApiCalledEventArgs()
177177
{
178-
Timestamp = new DateTime(1979, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddMilliseconds(e.Timestamp),
178+
Timestamp = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddMilliseconds(e.Timestamp),
179179
Type = e.Type,
180180
Arguments = args.AsReadOnly()
181181
};

dotnet/src/webdriver/DevTools/v85/V85JavaScript.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private void OnRuntimeConsoleApiCalled(object sender, ConsoleAPICalledEventArgs
175175

176176
var wrapped = new ConsoleApiCalledEventArgs()
177177
{
178-
Timestamp = new DateTime(1979, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddMilliseconds(e.Timestamp),
178+
Timestamp = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddMilliseconds(e.Timestamp),
179179
Type = e.Type,
180180
Arguments = args.AsReadOnly()
181181
};

0 commit comments

Comments
 (0)