Author: info
Description:
SMW 0.7 let you specify a "unit" for dates either by adding something like [[primary display unit=%Y]] to an attribute page or in a query like [[Date of birth:=+]][[Date of birth:=%b %m]]. (The first results in seeing 2007 for a date, the second results in Nov 02.)
This overloading of the unit specifier is broken in 1.0 The new SMW_DV_Time.php simply ignores date formats. The 0.7 SMW_DT_DateTime.php, if passed desired units, would use strftime($wantedFormat, $time) to format the date.
This is a significant regression. However, I don't know how many installations use this feature. It lets you control the precision of a date, and it lets you do things like show a birthday a certain way.
MediaWiki has its own way to format dates but you could still support the UNIX-y approach by looking for a % in the unit string.
Version: unspecified
Severity: minor
URL: http://sandbox.semantic-mediawiki.org/wiki/Date_type_demo#Tinkering_with_format