Fixing Birth Date in phplist

7 Jan

If you are using the popular phplist mailing list configuration software, you might run into a situation where the birth date lists only 10 years – all of which are on or around the current year. How do you fix this to allow your subscribers to view a greater range of dates?

The secret lies in the /config/config.php file that lies in your phplist install. Open up the file, and look for two lines that look like this:

define('DATE_START_YEAR',0);
define('DATE_END_YEAR',0);

As you can see from the comments above, the zero value in the fields sets the start and end years to the 10-year limit around the current year.

I changed it to:

define('DATE_START_YEAR',1920);
define('DATE_END_YEAR',2020);

for my install, and the phplist shows the 100-year span now.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: