Skip to content

Commit

Permalink
revert previous fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sandre58 committed Jul 6, 2024
1 parent 1ef6995 commit dc937f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MyNet.Utilities/Extensions/DateTimeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static class DateTimeExtensions
{
public static DateTime ToLocalDateTime(this DateTime date, TimeSpan time) => date.ToLocalTime().BeginningOfDay().Add(time);

public static DateTime ToUtcDateTime(this DateTime date, TimeSpan time) => date.ToUniversalTime().BeginningOfDay().Add(time);
public static DateTime ToUtcDateTime(this DateTime date, TimeSpan time) => date.ToLocalTime().BeginningOfDay().Add(time).ToUniversalTime();

public static Period ToPeriod(this DateTime dateTime, FluentTimeSpan timeSpan) => new(dateTime, dateTime.AddFluentTimeSpan(timeSpan));

Expand Down

0 comments on commit dc937f5

Please sign in to comment.