Last modified: 2007-11-19 16:07:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 12024 - Correcting Persian date formats
Correcting Persian date formats
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
  Show dependency treegraph
Reported: 2007-11-18 15:21 UTC by Roozbeh Pournader
Modified: 2007-11-19 16:07 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---

patch to correct Persian date formats (1.10 KB, patch)
2007-11-18 15:21 UTC, Roozbeh Pournader

Description Roozbeh Pournader 2007-11-18 15:21:27 UTC
Created attachment 4349 [details]
patch to correct Persian date formats

Some of the present date formats do not follow the esatablished formats for date and time. The established formats are specified in the document "Locale requirements for Persian language of Iran", available here:

In the attached patch, I am fixing the following issues:

1) Move the time after the date, separating them with a short text phrase, as specified in the locale requirements document, section 6 ("complete time"), page 10.

2) Making Gregorian mdy and ymd formats use month numbers instead of month names, as using month names in a different order does not result in recognizable dates in Persian. I do not expect many people to use these fixed formats even after the change, but before the change, they were unusable.

3) Since I am replacing month names with numbers in some of the formats, and a totally numerical date may result in a confusion about the date system, I am adding the necessary suffix for the date system to those two formats, as specified in the locale requirements document, page 4.

An alternative to changes made in 2 and 3, would be removing 'mdy' and 'ymd' from $datePreferences, or just removing 'mdy' and changing 'ymd' to use the new Iranian calendar with a suffix indicating the .
Comment 1 Huji 2007-11-19 16:07:13 UTC
Applied with r27631.

Note You need to log in before you can comment on or make changes to this bug.