Page MenuHomePhabricator

Selected 'Date Format' does not display in the MediaWiki editor correctly
Closed, DeclinedPublic

Description

Author: nadeejw

Description:
Date - no preference

Steps to reproduce:

  1. Logged in to MediaWiki.
  2. Click on the 'My preferences' link.
  3. Click on the 'Date and time'.
  4. Change the 'Date format'.
  5. Open a wiki page in the editor mode.
  6. Click on the 'Signature' link.
  7. Click on the 'Save page' button.

Actual results:
Page displayed signature in '11:47, 17 January 2011 (UTC)' format for all the 'Date format'.
Note: For all the 5 date formats, same displayed in the MediaWiki editor.
(refer the screenshots)

Expected result:
Correct date format should be displayed.


Version: 1.18.x
Severity: major
OS: Windows XP
Platform: PC

Attached:

Date_No_preference.JPG (934×1 px, 99 KB)

Details

Reference
bz26770

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:12 PM
bzimport set Reference to bz26770.
bzimport added a subscriber: Unknown Object (MLST).

nadeejw wrote:

Date format - 2nd option

Attached:

Date_2.JPG (934×1 px, 103 KB)

This is the intended behaviour as far as I know since signatures are substituted on the page. If those would abide the date preferences, a multi language wiki (or in just any wiki that allows and has users changing date format) signatures would be messed up.

The signatures follow the site date format (set in DefaultSettings.php if I recall correctly, can be changes by overwriting in LocalSettings.php for the entire wiki)

The user preference dataformat is for dynamic timestamps coming from the database. Such as on [[Special:RecentChanges]], (diff)-views, page histories, watchlist etc.

(In reply to comment #1)

Created attachment 8000 [details]
Date format - 2nd option

In the screenshot you see in the #footer the date format also changes.

Attached:

Date_2.JPG (934×1 px, 103 KB)

Changing all WONTFIX high priority bugs to lowest priority (no mail should be generated since I turned it off for this.)