Enter a date of last year in custom field

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
ada.fan
Posts: 1
Joined: 06 Jan 2011, 04:39

Enter a date of last year in custom field

Post by ada.fan »

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.
atrol
Site Admin
Posts: 8398
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Enter a date of last year in custom field

Post by atrol »

I am not able to reproduce the problem.
Which version of MantisBT do you use?
Please use Search before posting and read the Manual
Leonardo Colombi
Posts: 5
Joined: 17 Sep 2009, 07:04
Contact:

Re: Enter a date of last year in custom field

Post by Leonardo Colombi »

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.
Post Reply