Page 1 of 1

Custom field, Type "Date" only goes up to 31st Dec. 2027

Posted: 03 Jul 2023, 14:09
by rabbit
I created a customfield type "date" and linked it to a project.

However, I can't choose a date later than 31st December 2027.

Any ideas?
Bild.png
Bild.png (23.91 KiB) Viewed 11570 times

Re: Custom field, Type "Date" only goes up to 31st Dec. 2027

Posted: 03 Jul 2023, 14:18
by rabbit
Issue solved.

Found solution viewtopic.php?f=3&t=21652&p=52922&hilit ... ate#p52922.


Add these lines to file config_inc.php and adjust to your needs

Code: Select all

/**
	 * Number of years in the past that custom date fields will display in
	 * drop down boxes.
	 * @global int $g_backward_year_count
	 */
	$g_backward_year_count 				= 4;

	/**
	 * Number of years in the future that custom date fields will display in
	 * drop down boxes.
	 * @global int $g_forward_year_count
	 */
	[b]$g_forward_year_count 				= 4;[/b]