Last modified: 2009-03-17 03:12:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17548, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15548 - Dates should be stored in ISO8601 notation
Dates should be stored in ISO8601 notation
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-10 08:31 UTC by Patrick
Modified: 2009-03-17 03:12 UTC (History)
2 users (show)

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


Attachments

Description Patrick 2008-09-10 08:31:24 UTC
Currently SF stores dates in the form 'YYYY/MM/DD'. Semantic MediaWiki's default format is 'YYYY-MM-DD' ([http://en.wikipedia.org/wiki/ISO_8601 ISO8601 notation]) though. That's unnecessarily irritating, imo.
Comment 1 Yaron Koren 2008-09-10 15:16:28 UTC
Hi, in what circumstances does this become an issue?
Comment 2 Patrick 2008-09-10 15:44:56 UTC
(In reply to comment #1)
> Hi, in what circumstances does this become an issue?

Well, I have a table in a template that's used in pages describing projects, which contains the following:

<tr><th>Arrived</th><th>Deadline</th><th>Sent</th></tr>
<tr><td>[[Project Arrived date::{{{ArrivedDate}}}]]</td><td>[[Project Deadline date::{{{DeadlineDate}}}]]</td><td>[[Project Sent date::{{{SentDate}}}]]</td></tr>

This page (using the above template) is being filled with a form. Afterwards the resulting table in the page looks as follows:

Arrived 	Deadline 	Sent
2008/09/01 	2008/09/09 	2008/09/08

but imo it should like this:

Arrived 	Deadline 	Sent
2008-09-01 	2008-09-09 	2008-09-08
Comment 3 Yaron Koren 2008-09-10 15:59:23 UTC
Hi, sure, but where does the problem arise? Or is this mostly an aesthetic issue?
Comment 4 Patrick 2008-09-10 16:12:45 UTC
(In reply to comment #3)
> Hi, sure, but where does the problem arise? Or is this mostly an aesthetic
> issue?

Yes, it's mostly an aesthetic issue. And I know already that (my) target users will complain about too many different date formats. ;) SMW has a default (at least it's written in the documentation at http://www.semantic-mediawiki.org/wiki/Type:Date#Display_format - although it doesn't seem to really be true, but that's another issue...), so I think an extension that heavily builds on SMW should also stick to this. Is there a particular reason for using the '/' divider?

Comment 5 Roan Kattouw 2008-09-10 20:19:08 UTC
Why don't you use {{#time:}} to reformat your dates?
Comment 6 Patrick 2008-09-10 23:01:19 UTC
(In reply to comment #5)
> Why don't you use {{#time:}} to reformat your dates?

I didn't think of that. Ok, so changing

[[Project Arrived date::{{{ArrivedDate}}}]]

to

[[Project Arrived date::{{ #time: Y-m-d | {{{ArrivedDate}}} +8 hours }}]]

gives me what I want, no matter what SF actually stores (the +8 hours is there because I assume everybody will enter China Standard Time dates instead of UTC dates).
Comment 7 Chad H. 2009-03-17 03:12:12 UTC
Closing as INVALID. No real bug here.

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


Navigation
Links