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
F15416809: D21451.id51052.diff
Thu, Mar 20, 1:40 PM
F15404720: D21451.id51052.diff
Tue, Mar 18, 8:44 AM
F15393441: D21451.id51052.diff
Sat, Mar 15, 8:57 PM
F15380910: D21451.id51051.diff
Fri, Mar 14, 4:57 AM
F15338883: D21451.id51052.diff
Sun, Mar 9, 1:19 PM
F15334397: D21451.diff
Sat, Mar 8, 8:46 AM
F15332992: D21451.id51053.diff
Fri, Mar 7, 10:56 PM
F15282928: D21451.id51052.diff
Tue, Mar 4, 3:42 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