summaryrefslogtreecommitdiff
path: root/conf/dokuwiki.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-02-23 13:40:45 +0100
committerAndreas Gohr <andi@splitbrain.org>2008-02-23 13:40:45 +0100
commite656dcd46abfe069ea83271248dbd7aae36554ca (patch)
tree989cc97f395c6c5102ffa01aaad9a758181bbcc7 /conf/dokuwiki.php
parent8acb31082c9a565d775be0739e6deaf1773f9751 (diff)
downloadrpg-e656dcd46abfe069ea83271248dbd7aae36554ca.tar.gz
rpg-e656dcd46abfe069ea83271248dbd7aae36554ca.tar.bz2
use strftime() instead of date() FS#1335 :!:
This patch replaces the use of the date() function with the strftime() function. The latter will respect a set locale and will use localized strings for things like month names. Because the format options for strftime differ from the ones used in date, DokuWiki will rest the value of $conf['dformat'] if it contains an old date format string (detected by missing % characters). Plugins or templates using the $conf['dformat'] need to be updated. darcs-hash:20080223124045-7ad00-6afb2b839afc58781463e25577e06adb675fff79.gz
Diffstat (limited to 'conf/dokuwiki.php')
-rw-r--r--conf/dokuwiki.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/dokuwiki.php b/conf/dokuwiki.php
index ab2995d80..0229a5af3 100644
--- a/conf/dokuwiki.php
+++ b/conf/dokuwiki.php
@@ -33,7 +33,7 @@ $conf['youarehere'] = 0; //show "You are here" navigation? 0|1
$conf['typography'] = 1; //smartquote conversion 0=off, 1=doublequotes, 2=all quotes
$conf['htmlok'] = 0; //may raw HTML be embedded? This may break layout and XHTML validity 0|1
$conf['phpok'] = 0; //may PHP code be embedded? Never do this on the internet! 0|1
-$conf['dformat'] = 'Y/m/d H:i'; //dateformat accepted by PHPs date() function
+$conf['dformat'] = '%Y/%m/%d %H:%M'; //dateformat accepted by PHPs strftime() function
$conf['signature'] = ' --- //[[@MAIL@|@NAME@]] @DATE@//'; //signature see wiki:config for details
$conf['toptoclevel'] = 1; //Level starting with and below to include in AutoTOC (max. 5)
$conf['maxtoclevel'] = 3; //Up to which level include into AutoTOC (max. 5)