Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use string serializtion/deserialization for DateTime structure #147

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public class CreateLogItemRequest
/// <summary>
/// Date time of log item.
/// </summary>
[JsonConverter(typeof(DateTimeUnixEpochConverter))]
public DateTime Time { get; set; } = DateTime.UtcNow;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using ReportPortal.Client.Converters;
using System;
using System.Text.Json.Serialization;
using System;

namespace ReportPortal.Client.Abstractions.Requests
{
Expand All @@ -12,7 +10,6 @@ public class FinishLaunchRequest
/// <summary>
/// Gets or sets the date and time when the launch execution is finished.
/// </summary>
[JsonConverter(typeof(DateTimeUnixEpochConverter))]
public DateTime EndTime { get; set; } = DateTime.UtcNow;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public class FinishTestItemRequest
/// <summary>
/// Gets or sets the date and time when the test item is finished.
/// </summary>
[JsonConverter(typeof(DateTimeUnixEpochConverter))]
public DateTime EndTime { get; set; } = DateTime.UtcNow;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@ public class MergeLaunchesRequest
/// <summary>
/// Gets or sets the date and time when the launch is executed.
/// </summary>
[JsonConverter(typeof(DateTimeUnixEpochConverter))]
public DateTime StartTime { get; set; }

/// <summary>
/// Gets or sets the date and time when the launch is finished.
/// </summary>
[JsonConverter(typeof(DateTimeUnixEpochConverter))]
public DateTime EndTime { get; set; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public class StartLaunchRequest
/// <summary>
/// Gets or sets the date and time when the launch is executed.
/// </summary>
[JsonConverter(typeof(DateTimeUnixEpochConverter))]
public DateTime StartTime { get; set; } = DateTime.UtcNow;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public class StartTestItemRequest
/// <summary>
/// Date time when new test item is created.
/// </summary>
[JsonConverter(typeof(DateTimeUnixEpochConverter))]
public DateTime StartTime { get; set; } = DateTime.UtcNow;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,11 @@ public class LaunchResponse
/// <summary>
/// Gets or sets the start time of the launch.
/// </summary>
[JsonConverter(typeof(DateTimeUnixEpochConverter))]
public DateTime StartTime { get; set; }

/// <summary>
/// Gets or sets the end time of the launch.
/// </summary>
[JsonConverter(typeof(NullableDateTimeUnixEpochConverter))]
public DateTime? EndTime { get; set; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public class LogItemResponse
/// <summary>
/// Gets or sets the time when the log item was created.
/// </summary>
[JsonConverter(typeof(DateTimeUnixEpochConverter))]
public DateTime Time { get; set; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ public class TestItemResponse
/// <summary>
/// Gets or sets the start time of the test item.
/// </summary>
[JsonConverter(typeof(DateTimeUnixEpochConverter))]
public DateTime StartTime { get; set; }

/// <summary>
/// Gets or sets the end time of the test item.
/// </summary>
[JsonConverter(typeof(NullableDateTimeUnixEpochConverter))]
public DateTime? EndTime { get; set; }

/// <summary>
Expand Down Expand Up @@ -191,7 +189,6 @@ public class ExternalSystemIssue
/// <summary>
/// Gets or sets the submit date of the external system issue.
/// </summary>
[JsonConverter(typeof(DateTimeUnixEpochConverter))]
public DateTime SubmitDate { get; set; }

/// <summary>
Expand Down
44 changes: 0 additions & 44 deletions src/ReportPortal.Client/Converters/DateTimeUnixEpochConverter.cs

This file was deleted.

Loading