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
F18627525: D16974.id40851.diff
Tue, Sep 16, 4:14 AM
F18606385: D16974.id40846.diff
Sat, Sep 13, 10:14 PM
F18601419: D16974.id.diff
Sat, Sep 13, 12:27 PM
F18591409: D16974.diff
Fri, Sep 12, 9:10 AM
F18508341: D16974.id.diff
Fri, Sep 5, 2:45 AM
F18461023: D16974.id40846.diff
Mon, Sep 1, 7:50 PM
F18452344: D16974.id40851.diff
Mon, Sep 1, 2:43 AM
F18435146: D16974.diff
Sun, Aug 31, 9:52 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