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
F19018393: D21451.id51053.diff
Nov 23 2025, 11:06 AM
F19002066: D21451.diff
Nov 21 2025, 4:46 AM
F18843594: D21451.id.diff
Oct 28 2025, 11:36 PM
F18837835: D21451.id51051.diff
Oct 27 2025, 7:59 AM
F18837512: D21451.diff
Oct 27 2025, 5:58 AM
F18760829: D21451.id51052.diff
Oct 6 2025, 10:42 AM
F18757647: D21451.diff
Oct 5 2025, 6:33 PM
F18626855: D21451.diff
Sep 16 2025, 2:39 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