Page MenuHomePhabricator

Changing custom "date" field has odd date formatting in message
Closed, DuplicatePublic

Description

shadowhand changed Due Date from Sat, Mar 1, 12:00 AM to May 1 2014, 12:00 AM.

The date that I am changing from includes the day name "Sat" but the date I am changing to does not. For consistency, I would suggest removing the day name completely, as it is not displayed anywhere else with custom date fields.

Event Timeline

shadowhand raised the priority of this task from to Needs Triage.
shadowhand updated the task description. (Show Details)
shadowhand added a project: Phabricator.
shadowhand added a subscriber: shadowhand.
epriestley triaged this task as Wishlist priority.Mar 22 2014, 11:48 PM
epriestley added a subscriber: epriestley.

In all cases were we display dates, we use formats like "Mon, June 2" for dates within 30 days of the current time, and formats like "June 2 2013" for dates more than 30 days from the current time. This is a side effect of that behavior (Mar 1 is less than 30 days away, while May 1 is more than 30 days away).

It would probably be better to let the user customize the "near" date format, customize the "far" date format, customize the cutoff (or provide several cutoffs, etc., etc.), and then exclude this rendering from using the cutoff form. However, that's a lot of work and this feature is only very slightly inconvenient as is, so we probably won't fix this anytime soon. See also T4661.

โœ˜ Merged into T5296.