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
Unknown Object (File)
Wed, Jul 1, 4:56 AM
Unknown Object (File)
Jun 28 2026, 12:37 PM
Unknown Object (File)
Jun 26 2026, 11:48 PM
Unknown Object (File)
Jun 22 2026, 11:55 PM
Unknown Object (File)
Jun 7 2026, 10:29 PM
Unknown Object (File)
Mar 5 2026, 10:02 PM
Unknown Object (File)
Mar 5 2026, 7:02 AM
Unknown Object (File)
Mar 3 2026, 8:35 PM
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