I have created a custom field with nature "Date". But I failed to update a date of year 2010 as current year is 2011.
Can anyone advise how I can input and update a date filed of last year?
Thanks so much.
Enter a date of last year in custom field
Moderators: Developer, Contributor
-
- Posts: 5
- Joined: 17 Sep 2009, 07:04
- Contact:
Re: Enter a date of last year in custom field
In Mantis version 1.1.8 I solved this problem changing line
$t_start_year = $t_current;
with
$t_start_year = $t_current - 1;
in function print_year_range_option_list, that's inside core\date_api.php
Maybe in newer Mantis version this issue is already solved.
$t_start_year = $t_current;
with
$t_start_year = $t_current - 1;
in function print_year_range_option_list, that's inside core\date_api.php
Maybe in newer Mantis version this issue is already solved.