Item15080: make {DefaultDateFormat}
a text field
Priority: Normal
Current State: Closed
Released In: 2.1.8
Target Release: patch
Applies To: Engine
Component:
Branches: Release02x01 master
In
configure
the default date format can only be set to a couple of hard coded format strings, i.e. this list does not contain
$day.$mo.$year
which is the most common date format in an european context.
The date format can have quite a lot of different formats so that we should make this a free form string field instead of a select box of predefined values.
Proposed change:
iff --git a/core/lib/Foswiki.spec b/core/lib/Foswiki.spec
index c86aa13e9..920cb7c2a 100644
--- a/core/lib/Foswiki.spec
+++ b/core/lib/Foswiki.spec
@@ -1343,7 +1343,7 @@ $Foswiki::cfg{UseLocale} = $FALSE;
# =configure= tests if 1901-01-01 is handled by the perl localtime function.
$Foswiki::cfg{DisplayTimeValues} = 'gmtime';
-# **SELECT '$day $month $year', '$year-$mo-$day', '$year/$mo/$day', '$year.$mo.$day' LABEL="Default Date Format"**
+# **STRING 50 LABEL="Default Date Format"**
# Set the default format for dates. The traditional Foswiki format is
# '$day $month $year' (31 Dec 2007). The ISO format '$year-$mo-$day'
# (2007-12-31) is recommended for non English language Foswikis. Note that $mo
--
MichaelDaum - 14 Apr 2022