This has been present since introduction of {{#formatdate: }} in r48249 (bug 4582)
$confstr = $this->getOption( 'math' );
$confstr .= '!' . $this->getStubThreshold();
- if ( $wgUseDynamicDates ) {
+ if ( $wgUseDynamicDates ) { # This is wrong (bug 24714)
$confstr .= '!' . $this->getDatePreference();
}
$confstr .= '!' . ( $this->getOption( 'numberheadings' ) ? '1' : '' );
}
function getDateFormat() {
- if ( !$this->getUseDynamicDates() ) {
- throw new MWException( 'Getting DateFormat option without UseDynamicDates.' );
- }
-
if ( !isset( $this->mDateFormat ) ) {
$this->mDateFormat = $this->mUser->getDatePreference();
}
!!test
formatdate parser function
-!! config
-wgUseDynamicDates=1
!!input
{{#formatdate:2009-03-24}}
!! result
!!test
formatdate parser function, with default format
-!! config
-wgUseDynamicDates=1
!!input
{{#formatdate:2009-03-24|mdy}}
!! result
!! test
Spacing of numbers in formatted dates
-!! config
-wgUseDynamicDates=1
!! input
{{#formatdate:January 15}}
!! result