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