Page MenuHomePhabricator

When printing timestamps on paper: use an absolute, context-free date format
ClosedPublic

Authored by epriestley on Sep 4 2020, 11:25 PM.
Tags
None
Referenced Files
F15449196: D21451.id51051.diff
Fri, Mar 28, 8:50 AM
F15448206: D21451.id51053.diff
Fri, Mar 28, 3:26 AM
F15445034: D21451.id51053.diff
Thu, Mar 27, 12:20 PM
F15444577: D21451.id.diff
Thu, Mar 27, 10:10 AM
F15444418: D21451.id51052.diff
Thu, Mar 27, 9:31 AM
F15442443: D21451.id51052.diff
Wed, Mar 26, 11:29 PM
F15439115: D21451.diff
Wed, Mar 26, 5:50 AM
F15438476: D21451.id51053.diff
Wed, Mar 26, 12:53 AM
Subscribers
None

Details

Summary

Ref T13573. Using the browser "Print" feature on pages produces "Thu, Aug 4, 12:22" timestamps which require context to interpret precisely (they don't have a year and don't have a timezone).

Instead, retain these timestamps in "screen" contexts but use "YYYY-MM-DD HH:MM:SS (UTC+X)" timestamps when printing.

Test Plan

Printed Maniphest tasks and other pages in Safari and Chrome using "?print=1" and "Print to PDF", saw absolute timestamps after this chagne in the printed documents.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable