The node "Authored on" field description is broken when a user clicks the Preview button.

Bugs:

  1. The entire inputed date string is printed as the "timezone offset from UTC". This is not helpful.
  2. Likewise the inputed date string is printed for the "Format:" section, even though Drupal may not have interpreted this string the way the user intended.
  3. Also, "timezone" is not actually a word. This patch changes the description to use "time zone".

For example, a user enters "July 21" for the "Authored on" field and clicks Preview.

Without the patch: "Format: July 21. The date format is YYYY-MM-DD and July 21 is the timezone offset from UTC. Leave blank to use the time of form submission."

With the patch: "Format: 2010-07-21 00:00:00 -0700. The date format is YYYY-MM-DD and -0700 is the time zone offset from UTC. Leave blank to use the time of form submission."

Comments

mfb’s picture

StatusFileSize
new1.36 KB
ff1’s picture

#1: node-timezone.patch queued for re-testing.

ff1’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new4.13 KB
new3.96 KB

Very simple patch. Works exactly as described.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.