@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Change latest and earliest saved timezones on all day events to php official timezones instead of guessing GMT offsets

Summary: Ref T8021, Change latest and earliest saved timezones on all day events to php official timezones instead of guessing GMT offsets

Test Plan: On different versions of php, create and save all day event in various timezones without errors.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T8021

Differential Revision: https://secure.phabricator.com/D12772

+4 -4
+4 -4
src/applications/calendar/storage/PhabricatorCalendarEvent.php
··· 62 62 $this->setDateFrom( 63 63 $this->getDateEpochForTimeZone( 64 64 $this->getDateFrom(), 65 - new DateTimeZone('GMT+12'), 65 + new DateTimeZone('Pacific/Kiritimati'), 66 66 'Y-m-d', 67 67 null, 68 68 $zone)); ··· 70 70 $this->setDateTo( 71 71 $this->getDateEpochForTimeZone( 72 72 $this->getDateTo(), 73 - new DateTimeZone('GMT-12'), 73 + new DateTimeZone('Pacific/Midway'), 74 74 'Y-m-d 23:59:59', 75 75 '-1 day', 76 76 $zone)); ··· 102 102 $zone, 103 103 'Y-m-d', 104 104 null, 105 - new DateTimeZone('GMT+12'))); 105 + new DateTimeZone('Pacific/Kiritimati'))); 106 106 107 107 $this->setDateTo( 108 108 $this->getDateEpochForTimeZone( ··· 110 110 $zone, 111 111 'Y-m-d', 112 112 '+1 day', 113 - new DateTimeZone('GMT-12'))); 113 + new DateTimeZone('Pacific/Midway'))); 114 114 115 115 return $this; 116 116 }