Skip to content

Commit

Permalink
cleaned code
Browse files Browse the repository at this point in the history
  • Loading branch information
LuBroering committed Nov 28, 2023
1 parent 1e78748 commit ef43b3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/System/Calendar/Appointment.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2385,7 +2385,7 @@ sub _AppointmentRecurringCreate {
}
$StartTime = $CurrentStartTimeObject->ToString();
}
if ( IsInteger($EndDSTDiff) ) {
if ( IsInteger( $EndDSTDiff ) ) {
if ( $EndDSTDiff > 0 ) {
$CurrentEndTimeObject->Subtract( Seconds => $EndDSTDiff );
}
Expand Down
2 changes: 2 additions & 0 deletions Kernel/System/DateTime.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2242,8 +2242,10 @@ sub _OpNotEquals {

sub CompareDST {
my ($Self, $OtherDateTimeObject) = @_;

return $Self->{CPANDateTimeObject}->offset - $OtherDateTimeObject->{CPANDateTimeObject}->offset;
}

1;

=end Internal:
Expand Down

0 comments on commit ef43b3c

Please sign in to comment.