Page MenuHomePhabricator

D16867.id40611.diff
No OneTemporary

D16867.id40611.diff

diff --git a/src/applications/calendar/storage/PhabricatorCalendarEvent.php b/src/applications/calendar/storage/PhabricatorCalendarEvent.php
--- a/src/applications/calendar/storage/PhabricatorCalendarEvent.php
+++ b/src/applications/calendar/storage/PhabricatorCalendarEvent.php
@@ -590,10 +590,10 @@
$start = $this->newStartDateTime();
$end = $this->newEndDateTime();
- if ($show_end) {
- $min_date = $start->newPHPDateTime();
- $max_date = $end->newPHPDateTime();
+ $min_date = $start->newPHPDateTime();
+ $max_date = $end->newPHPDateTime();
+ if ($show_end) {
// Subtract one second since the stored date is exclusive.
$max_date = $max_date->modify('-1 second');
@@ -605,8 +605,8 @@
$show_end_date = false;
}
- $min_epoch = $start->getEpoch();
- $max_epoch = $end->getEpoch();
+ $min_epoch = $min_date->format('U');
+ $max_epoch = $max_date->format('U');
if ($this->getIsAllDay()) {
if ($show_end_date) {

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 29, 6:04 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6713446
Default Alt Text
D16867.id40611.diff (1001 B)

Event Timeline