Tags:
create new tag
view all tags

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

WhatDoesItAffect: Rendering

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

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2009-04-29 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.