[solved] Attributes: [Date] starts from 2005

Solutions for other phpList version 2 users
Forum rules
Please do not ask questions here, this is for Solutions you have discovered or come across.

[solved] Attributes: [Date] starts from 2005

Postby lho1108 » 3:00pm, Tue 10 Jun, 2008

Can this be changed to go back further than 2005? I am using this attribute for date of birth.
lho1108
phpList newbie
 
Posts: 3
Joined: 2:56pm, Tue 10 Jun, 2008

Postby db8000 » 9:40pm, Thu 14 Aug, 2008

if you are still looking its in the config.php file.
db8000
phpList newbie
 
Posts: 1
Joined: 8:52am, Sat 24 May, 2008

Postby H2B2 » 9:42pm, Fri 29 Aug, 2008

db8000 wrote:if you are still looking its in the config.php file.
That is correct, and to be more specific, these settings in config.php should change the year ranges:
Code: Select all
# year ranges. If you use dates, by default the drop down for year will be from
# three years before until 10 years after this the current value for year. If there
# is no current value the current year will be used.
# if you want to use a bigger range you can set the start and end year here
# be aware that the drop down may become very large.
# if set to 0 they will use the default behaviour. So I'm afraid you can't start with
# year 0. Also be aware not to set the end year to something relatively soon in the
# future, or it will stop working when you reach that year.
define('DATE_START_YEAR',0);
define('DATE_END_YEAR',0);
H2B2
Moderator
 
Posts: 7188
Joined: 1:51am, Wed 15 Mar, 2006


Return to Answers, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 2 guests