Skip to content

Commit

Permalink
Change ical feed event to all day (#673)
Browse files Browse the repository at this point in the history
Co-authored-by: ceear <[email protected]>
  • Loading branch information
ceear and ceear authored Jan 11, 2025
1 parent 6313a3f commit 6283542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/subscriptions/get_ical_feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ function getPriceConverted($price, $currency, $database)
$uid = uniqid();
$summary = "Wallos: " . $subscription['name'];
$description = "Price: {$subscription['currency']}{$subscription['price']}\\nCategory: {$subscription['category']}\\nPayment Method: {$subscription['payment_method']}\\nPayer: {$subscription['payer_user']}\\nNotes: {$subscription['notes']}";
$dtstart = (new DateTime($subscription['next_payment']))->format('Ymd\THis\Z');
$dtend = (new DateTime($subscription['next_payment']))->modify('+1 hour')->format('Ymd\THis\Z');
$dtstart = (new DateTime($subscription['next_payment']))->format('Ymd');
$dtend = (new DateTime($subscription['next_payment']))->format('Ymd');
$location = isset($subscription['url']) ? $subscription['url'] : '';
$alarm_trigger = '-' . $subscription['trigger'] . 'D';

Expand Down

0 comments on commit 6283542

Please sign in to comment.