Skip to content

Commit

Permalink
Merge pull request #1259 from pkuehnel/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
pkuehnel authored May 27, 2024
2 parents 3792f2d + fc7227f commit ec91d90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ else
Variant="Variant.Outlined"
Value="@EditableValueConfiguration.Item.Endianess"
ValueChanged="(newItem) => UpdateEndianess(EditableValueConfiguration.Item, newItem)"
Label="HTTP Method"
Label="Endianess"
Margin="Constants.InputMargin">
@foreach (ModbusEndianess item in Enum.GetValues(typeof(ModbusEndianess)))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ internal List<Price> GeneratePricesBasedOnFixedPrices(DateTimeOffset from, DateT
var validFrom = new DateTimeOffset(day.AddHours(fixedPrice.FromHour).AddMinutes(fixedPrice.FromMinute)).ToUniversalTime();
var validTo = new DateTimeOffset(day.AddHours(fixedPrice.ToHour).AddMinutes(fixedPrice.ToMinute)).ToUniversalTime();

if (validTo.TimeOfDay == TimeSpan.Zero)
if (fixedPrice is { ToHour: 0, ToMinute: 0 })
{
validTo = validTo.AddDays(1);
}
Expand Down

0 comments on commit ec91d90

Please sign in to comment.