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
F14089011: D16974.diff
Sun, Nov 24, 7:29 AM
Unknown Object (File)
Tue, Nov 19, 11:05 AM
Unknown Object (File)
Fri, Nov 15, 6:14 AM
Unknown Object (File)
Sun, Nov 10, 10:46 PM
Unknown Object (File)
Thu, Nov 7, 12:13 PM
Unknown Object (File)
Oct 24 2024, 9:11 PM
Unknown Object (File)
Oct 22 2024, 9:06 AM
Unknown Object (File)
Oct 21 2024, 8:04 PM
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
Branch
relativeviewertimezone
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 14731
Build 19250: Run Core Tests
Build 19249: arc lint + arc unit

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