• 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.

In the new JSCalendarContrib Plugin Release (11594) there's an entry in the ChangeHistory:

Change History: 11594 Allow format to be configured.

This is not correct, because all of the settings can be configured, except the format of the date:

$TWiki::cfg{JSCalendarContrib}{style}    'blue' 
$TWiki::cfg{JSCalendarContrib}{lang}    'en' 
$TWiki::cfg{JSCalendarContrib}{format}    '%e %b %Y'
(LocalSite.cfg)

Every setting works for the JSCalendar (if i set for example the lang to de, the Calendar is German). Also the style can be changed.

BUT the format can not be changed at all. Nothing changes in the format of the JSCalendar.


That setting sets the default if nothing else overrides it. If you are using the DateFieldPlugin, you will find that it overrides it with %DATEFORMAT%

Discarded, not a bug.

CC


That could be correct, but it isn't:

a grep -ri '%DATEFORMAT%' didn't return any results (on all TWiki folders including data and lib and pub and so on...)

this means it wasn't set. Now I've set it correctly in the TWikiPreferences Web to see if it works with that.

On the EditTablePlugin it doesn't work, but on the EditTableRow Plugin it works correctly with the correct date format I set in the TWikiPreferences.

Could it be that the the EditTablePlugin has another call-up to the JSCalendarPlugin?

I set this BugReport back to new, because we still have the problem with the JSCalendar and EditTablePlugin.


A grep for the use of DATEFORMAT achieves nothing. You need to grep for it without the % signs to find out if it's set.

The EditTablePlugin is a law unto itself. it does not use the date format specified in the JSCalendarContrib, it uses its own default date format. The doc (EditTablePlugin) says The Plugin uses base settings like language and style from the JSCalendarContrib. The standard date format is '%e %B %Y' and is defined within this plugin. i.e. within the EditTablePlugin. You can also control the date format using the format parameter.

Discarded, not a bug in JSCalendarContrib.You might want to consider raising bugs against the TWiki:Plugins.DateFieldPlugin and TWiki:Plugins.EditTablePlugin to encourage the authors of those plugins to defer to the TWiki:Plugins.JSCalendarContrib default.

CC


I agree with you, sorry for disturbing your time. I finally found the setting in the lib/TWiki/Plugins/EditTablePlugin/Core.pm file:

} elsif( $type eq 'date' ) { my $ifFormat = ''; $ifFormat = $bits[3] if( @bits > 3 ); $ifFormat ||= '%e %B %Y';

I'll report this bug to the EditTablePlugin Developers.

Thx for your help

TWiki:Main.ArminSchenkel


I raised and fixed the problems in the two relevant plugins - see Item2982

CC

ItemTemplate
Summary JSCalendarContrib Date Format Change Failure
ReportedBy TWiki:Main.ArminSchenkel
Codebase 4.0.4
SVN Range

AppliesTo Extension
Component JSCalendarContrib
Priority Normal
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease n/a
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2006-10-11 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback