• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item7423: I18n/site-compliant Dates are impossible in TML and external processes

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine TWiki::Time Normal New   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


As noted in http://twiki.org/cgi-bin/view/Plugins/EcoTrashPluginDev (and several times previously), the {DefaultDateFormat} and {DisplayTimeValues} configuration items are not accessible in TML. This makes it impossible for TML to provide internationalized/site-compliant date/times from integer ('time serial') dates. Only Perl code can comply with their settings.

To correct this, the CALC $FORMATTIME format and the TWiki::Time format need a '$defdate' format that incorporates the system values. Note that the format specifiers are not identical, so CALC will have to translate the configuration item format to its own.

A variable should also be created to expose these items so that TML can pass them on (e.g. in forms or URLs) to external processes. This can be one variable with a selector, or two variables according to taste.

I'm listing this as a bug, not a feature request, since this is a significant flaw in the design that introduced these items.

It hits both Engine (TWiki::Time) and the SpreadSheetPlugin.

-- TWiki:Main/TimotheLitt - 2014-01-29

Summary I18n/site-compliant Dates are impossible in TML and external processes
ReportedBy TWiki:Main.TimotheLitt
Codebase 6.0.0, 5.1.4, 5.1.3, 5.1.2, 5.1.1, 5.1.0, 5.0.2, 5.0.1, 5.0.0, 4.3.2, 4.3.1, 4.3.0, 4.2.4, 4.2.3, 4.2.2
SVN Range TWiki-6.0.1-trunk, Thu, 09 Jan 2014, build 26720
AppliesTo Engine
Component TWiki::Time
Priority Normal
CurrentState New


TargetRelease n/a

Topic revision: r1 - 2014-01-29 - TimotheLitt
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback