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
F19804306: D21451.diff
Mon, Mar 2, 6:46 AM
F19562456: D21451.id.diff
Sat, Jan 31, 1:58 PM
F19562454: D21451.id.diff
Sat, Jan 31, 1:58 PM
F19519982: D21451.id.diff
Jan 16 2026, 10:01 AM
F19517313: D21451.id.diff
Jan 15 2026, 9:50 AM
F19515313: D21451.id.diff
Jan 14 2026, 10:06 AM
F19018393: D21451.id51053.diff
Nov 23 2025, 11:06 AM
F19002066: D21451.diff
Nov 21 2025, 4:46 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
Branch
date1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24867
Build 34307: Run Core Tests
Build 34306: arc lint + arc unit