Page MenuHomePhabricator

When resolving a relative date, only ignore the viewer timezone if the date has a timezone
ClosedPublic

Authored by epriestley on Dec 2 2016, 12:54 PM.
Tags
None
Referenced Files
F19133738: D16974.diff
Dec 10 2025, 7:31 AM
F19083585: D16974.id.diff
Dec 2 2025, 12:55 PM
F19075175: D16974.diff
Dec 1 2025, 8:48 AM
F18971437: D16974.id40851.diff
Nov 15 2025, 11:42 AM
F18849900: D16974.id.diff
Oct 30 2025, 1:01 PM
F18844988: D16974.diff
Oct 29 2025, 8:49 AM
F18813084: D16974.diff
Oct 20 2025, 1:55 PM
F18651442: D16974.diff
Sep 21 2025, 4:23 AM
Subscribers
None

Details

Summary

Ref T11801. In some cases, we generate a relative date without having a timezone. In these cases, use the viewer timezone.

Test Plan
  • Added a failing test case and made it pass.
  • Imported the event from T11801#202293, which failed before this change and worked after it.
  • Also added a reduced version of that event as a .ics test case since I caught a different bug. See next change.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to When resolving a relative date, only ignore the viewer timezone if the date has a timezone.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Dec 2 2016, 3:22 PM