Page MenuHomePhabricator

respect the user's date formatting
Closed, DeclinedPublic

Description

Author: info

Description:
In thread
http://www.mail-archive.com/semediawiki-devel@lists.sourceforge.net/msg00120.html
, cnit and Markus suggest using MediaWiki's date formatting, so that dates
appear according to user preference.


Version: unspecified
Severity: enhancement
URL: http://sandbox.semantic-mediawiki.org/wiki/Date_type_demo#What_about_date_preferences.3F

Details

Reference
bz9620

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:40 PM
bzimport set Reference to bz9620.

mail wrote:

Any news on this one?

I'm getting '10 September 2008' everywhere, although my user's preferences are set to '2001-01-15T16:12:34', and http://www.semantic-mediawiki.org/wiki/Type:Date says "Normally dates in query results display in ISO8601 format. "

info wrote:

If this ever worked, it doesn't work with recent SMW and MediaWiki code. I rewrote the Type:Date page to remove several incorrect statements.

mail wrote:

(In reply to comment #2)

If this ever worked, it doesn't work with recent SMW and MediaWiki code. I
rewrote the Type:Date page to remove several incorrect statements.

Ok, thanks for updating the docs then :)

In SMW 1.4, Type:Date has been rewritten to address many of its earlier limitations. See http://www.semantic-mediawiki.org/wiki/Type:Date for a feature overview.

Since SMW now supports a far greater range of dates than before, it is no longer possible to use MediaWiki's date formatting functions at all (they work only for very limited date ranges). Also, Type:Date now remembers if a date was only given partially (e.g. as "2008") and will print it in this form. Again, displaying incomplete dates is not encompassed by MW's user preferences on date formatting.

This feature therefore becomes harder to implement. Acknowledging our limited programming resources, I move its status to "LATER" -- interested contributors are welcome to look into the code of SMW_DV_Time.php and MW's Language.php to figure out how to solve this.

[Removing RESOLVED LATER as discussed in http://lists.wikimedia.org/pipermail/wikitech-l/2012-November/064240.html and announced in https://sourceforge.net/mailarchive/forum.php?thread_name=CALFVSbXkiffYy6HkhEWE0RtRrJ%2B2ebPz3g00gsr%2Bdz%2B1nZWsDA%40mail.gmail.com&forum_name=semediawiki-devel . Reopening and setting priority to "Lowest". For future reference, please use either RESOLVED WONTFIX (for issues that will not be fixed), or simply set lowest priority. Thanks a lot!]

Aklapper subscribed.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues . We are sorry for the inconvenience.