Page MenuHomePhabricator

Template date format problem
Closed, ResolvedPublic

Description

Author: Neoshinji

Description:
Due to limitations, SMW uses the date config ISO8601 (YEAR/MONTH/DAY) to save date data. Some countries, like Spain it's not usually to use this kind of format. For example we use the format DAY/MONTH/YEAR.

One way to show to the users their usually date format it's using a time parser function, you can create a template that contain this function, then every time you need to use a date, you can use this to show as their users like and the same time you save this data on the format used by SMW.

Extended info problem
http://sandbox.semantic-mediawiki.org/wiki/User:Neoshinji#SMW.2C_templates_and_parser_function_time


Version: unspecified
Severity: enhancement
URL: http://sandbox.semantic-mediawiki.org/wiki/User:Neoshinji#SMW.2C_templates_and_parser_function_time

Details

Reference
bz18405

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:32 PM
bzimport set Reference to bz18405.

I am somewhat confused by the wiki page that I see at this link. Some points that I see on this page (relating to missing month label) have been fixed recently. Also, the dates are not normally displayed in ISO format by SMW. If you want to get them in ISO format (for example if you want to parse them in a template), then you can add the output format "ISO" to the printout:

?mydateproperty # ISO

Please reopen this bug if there is still another problem that has not been fixed yet.