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
F15187173: D21451.id51052.diff
Fri, Feb 21, 6:38 AM
F15186741: D21451.diff
Fri, Feb 21, 3:46 AM
Unknown Object (File)
Thu, Feb 20, 6:15 PM
Unknown Object (File)
Thu, Feb 20, 12:19 PM
Unknown Object (File)
Thu, Feb 20, 11:35 AM
Unknown Object (File)
Thu, Feb 20, 11:08 AM
Unknown Object (File)
Thu, Feb 20, 10:39 AM
Unknown Object (File)
Tue, Feb 18, 10:07 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