'Date' types don't seem to use/respond to "#-F" formatting

From semantic-mediawiki.org

I'm using referata.com to host my sites, and can't seem to get the #-F formatting to have any effect. Is there a typo in the example? Here is my query:

{{#ask: [[Category:Courses]] | ?Modification date= | ?Has Liaison=Liaison | ?Has Last Editor=Last edited by | ?Is In Stage=Stage | headers=plain | sort=Modification date | order=descending | limit=300 }}

Adding "#-F [F d, y]" before the "=" in the Modification date call (or similar) has no effect.


I'd like the Modification date to be formatted differently - especially, to be able to display it in local time rather than GMT. I can do this by constructing a display template, but would rather have it done by the query itself as this page says I can!

19:16, 27 February 2017

For this to work SMW 2.4+ is required. Afaik referata.com still uses SMW 1.8.x

21:48, 27 February 2017
 

> Adding "#-F [F d, y]" before the "=" in the Modification date call (or similar) has no effect.

{{#ask: [[Modification date::+]]
 |?Modification date#-F[F d, y]=Foo
 |?Modification date#-F[F d, y]
 |?Modification date#-F [F d, y]= Spaces are not valid!
 |headers=plain
 |sort=Modification date
 |order=descending
 |limit=3
}}

Does work as described [0].

Some general suggestions when creating an issue or question.

  • Inform the audience about the version of MW/SMW you are referring to.
  • When using code or example snippets, please mark the text with <pre> or <code> to make it easier for the audience to identify or detect possible issues within the given examples.
  • Use the https://sandbox.semantic-mediawiki.org to create examples to help others answere your question more quickly.

[0] https://sandbox.semantic-mediawiki.org/wiki/ModificationDateFreeFormat

04:09, 5 March 2017