Feature Proposal: Use ISO Dates by Default
Motivation
Use ISO date (such as %SERVERTIME{$year-$mo-$day}%) by default in TWiki distribution for 2 reasons:
- avoid ambiguity across locales
- easily sort dates
Description and Documentation
1. Default date setting in configure
UseIsoDates has been implemented so that an administrator can set the the date format in configure by selecting from options
$day $month $year
,
$year-$mo-$day
,
$year/$mo/$day
,
$year.$mo.$day
.
The current default is
$day $month $year
. I suggest to change that to ISO format
$year-$mo-$day
in the next 4.3 patch release.
2. Default date setting in JSCalendarContrib
lib/TWiki/Contrib/JSCalendarContrib.pm
currently defaults to
'%e %B %Y'
. I suggest to change that to ISO format
'%Y-%m-%d'
. In addition I suggest to add
$TWiki::cfg{JSCalendarContrib}{format} = '%Y-%m-%d';
to TWiki.spec.
Examples
TWiki.org has been configured already for ISO dates. It can be seen in signatures and forms with date pickers.
Impact
Implementation
--
Contributors: PeterThoeny - 2009-04-04
Discussion
Accepted by 14 day rule, confirmed at
HelsinkiReleaseMeeting2009x04x20.
--
PeterThoeny - 2009-04-20
This is now implemented in TWiki core and
JSCalendarContrib. To be released in TWiki-4.3.1 patch release.
--
PeterThoeny - 2009-04-29