Page MenuHomePhabricator

In email, render dates with an explicit timezone offset
ClosedPublic

Authored by epriestley on Jul 13 2016, 2:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 13, 2:21 PM
Unknown Object (File)
Tue, Apr 9, 12:32 PM
Unknown Object (File)
Mon, Apr 8, 8:00 AM
Unknown Object (File)
Thu, Apr 4, 4:39 AM
Unknown Object (File)
Mon, Apr 1, 3:23 AM
Unknown Object (File)
Mon, Apr 1, 3:23 AM
Unknown Object (File)
Mon, Apr 1, 3:22 AM
Unknown Object (File)
Mon, Apr 1, 3:22 AM
Subscribers

Details

Summary

Fixes T10633. When generating email about a transaction which adjusts a date, render the offset explicitly (like "UTC-7").

This makes it more clear in cases like this:

  • mail is being sent to multiple users, and not necessarily using the viewer's settings;
  • you get some mail while travelling and aren't sure which timezone setting it generated under.
Test Plan

Rendered in text mode, saw UTC offset.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to In email, render dates with an explicit timezone offset.
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.Jul 13 2016, 3:00 PM
This revision was automatically updated to reflect the committed changes.

I have a feeling we will soon want to separate "plain-text email" and "html email" as rendering targets, along with "web-html"; So maybe have a isMailMode() instead here, to get the right meaning in this iteration.

Yeah -- we currently never render mail transactions as HTML, but could easily start now that we send HTML mail by default and that seems to be sticking.

This runs into T10363, too -- when publishing into other systems we probably should render this extra context, so maybe the check is really something like isDestinedForARemoteSystem().