Last modified: 2009-07-31 14:18:50 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 17075 - Type:date should support ISO output format
Type:date should support ISO output format
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: High enhancement (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-19 13:36 UTC by DaSch
Modified: 2009-07-31 14:18 UTC (History)
0 users

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


Attachments
I made a temporary patch to get parsable dates (786 bytes, patch)
2009-01-19 21:07 UTC, DaSch
Details

Description DaSch 2009-01-19 13:36:41 UTC
The Dateoutput that is now given from #ask when querying for a date is not readable by the Parserfunction #time
#time is using the PHP strtotime() function, so the problem is the output of SMW
Comment 1 DaSch 2009-01-19 21:07:31 UTC
Created attachment 5705 [details]
I made a temporary patch to get parsable dates

I made a temporary patch to get parsable dates
Comment 2 Markus Krötzsch 2009-01-20 08:53:24 UTC
I change the contents of this feature request as follows: Type:Date should have an option to select an output format in inline queries (and #show) that conforms to the ISO date specification.

The original request, that ''all'' Type:date outputs should be understood by #time is (at best) a bug for #time. It cannot be the goal of SMW to constrict its date support to the limitations of #time. SMW's dates now cover a far larger range (outside of Unix time) and support international date formatting. So it won't be possible, in general, to have #time support all dates that are available in SMW, due to the limitations of strtotime(). It would still be good to have an option to get ISO conformant output.

Changing this bug into a (high priority) feature request.
Comment 3 DaSch 2009-01-24 12:26:37 UTC
well by the way the SVN Version of the parserfunctions can also handle a wide timerange, the only problem at the moment is that the output of dates is not parsable
Comment 4 Markus Krötzsch 2009-07-31 14:18:50 UTC
this problem was fixed some time ago, using the output format "ISO" as below:

 {{#ask: ...
 | ?dateproperty#ISO
 }}

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


Navigation
Links