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
F18760829: D21451.id51052.diff
Mon, Oct 6, 10:42 AM
F18757647: D21451.diff
Sun, Oct 5, 6:33 PM
F18626855: D21451.diff
Sep 16 2025, 2:39 AM
F18613021: D21451.id51051.diff
Sep 14 2025, 10:36 AM
F18598274: D21451.diff
Sep 13 2025, 4:42 AM
F18571241: D21451.id51053.diff
Sep 10 2025, 4:51 AM
F18571239: D21451.id51052.diff
Sep 10 2025, 4:51 AM
F18571238: D21451.id51051.diff
Sep 10 2025, 4:51 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