Hi,

I created file date.patch with:

diff --git a/usr/share/gforge/www/pm/include/ProjectGroupHTML.class.php 
b/usr/share/gforge/www/pm/include/ProjectGroupHTML.class.php
index e87f672..2583399 100644
--- a/usr/share/gforge/www/pm/include/ProjectGroupHTML.class.php
+++ b/usr/share/gforge/www/pm/include/ProjectGroupHTML.class.php
@@ -203,9 +203,10 @@ class ProjectGroupHTML extends ProjectGroup {
        }

        function showYearBox($name,$year=1) {
+ $current_year = date('Y');
                echo '
                <select name="'.$name.'" size="1">';
- for ($i=1999; $i<=2013; $i++) {
+ for ($i=$current_year-5; $i<=$current_year+8; $i++) {
                        if ($i == $year) {
                                echo '
                                <option selected="selected" 
value="'.$i.'">'.$i.'</option>';

And run patch, get this error:

[root@it-forge include]# patch -p0 < date.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/usr/share/gforge/www/pm/include/ProjectGroupHTML.class.php 
b/usr/share/gforge/www/pm/include/ProjectGroupHTML.clas             s.php
|index e87f672..2583399 100644
|--- a/usr/share/gforge/www/pm/include/ProjectGroupHTML.class.php
|+++ b/usr/share/gforge/www/pm/include/ProjectGroupHTML.class.php
--------------------------
File to patch: /usr/share/gforge/www/pm/include/ProjectGroupHTML.class.php
patching file /usr/share/gforge/www/pm/include/ProjectGroupHTML.class.php
Hunk #1 FAILED at 203.
1 out of 1 hunk FAILED -- saving rejects to file 
/usr/share/gforge/www/pm/include/ProjectGroupHTML.class.php.rej


Any idea?

Regards

---------------------------------------------------
Javier Cuquerella Sánchez

[email protected]<mailto:[email protected]>
Atos Research & Innovation
Systems Administrator
Albarracin 25
28037-Madrid (SPAIN)
Tfno: +34.91.214.8080
www.atosresearch.eu<http://www.atosresearch.eu/>
es.atos.net
 [cid:349045816@01072011-319C]

From: Alain Peyrat [mailto:[email protected]]
Sent: Thursday, January 09, 2014 7:03 PM
To: [email protected]; Cuquerella Sanchez, Javier
Cc: [email protected]
Subject: Re: [Fusionforge-general] I can not schedule tasks in 2014

Hi,

You should apply this patch to your code or upgrade to latest 5.2

Best regards,
Alain

commit 9de80309756b24b856d468d7fec9b0de9a3aadb7
Author: Alain Peyrat <[email protected]<mailto:[email protected]>>
Date: Mon May 21 13:18:34 2012 +0000

    Fix [#425] Project Management Facility has years fixed 1999-2013

diff --git a/src/www/pm/include/ProjectGroupHTML.class.php 
b/src/www/pm/include/ProjectGroupHTML.class.php
index e87f672..2583399 100644
--- a/src/www/pm/include/ProjectGroupHTML.class.php
+++ b/src/www/pm/include/ProjectGroupHTML.class.php
@@ -203,9 +203,10 @@ class ProjectGroupHTML extends ProjectGroup {
        }

        function showYearBox($name,$year=1) {
+ $current_year = date('Y');
                echo '
                <select name="'.$name.'" size="1">';
- for ($i=1999; $i<=2013; $i++) {
+ for ($i=$current_year-5; $i<=$current_year+8; $i++) {
                        if ($i == $year) {
                                echo '
                                <option selected="selected" 
value="'.$i.'">'.$i.'</option>';


Le jeu. 9 janv. 2014 at 13:57, Franck Villaume 
<[email protected]<mailto:[email protected]>> a écrit 
:

Hi Javier,

can you provide at least the fusionforge version you are using ?
can you check the system time of your server ?

regards,
Franck



--

TrivialDev Founder

http://trivialdev.com


Le 09/01/2014 13:49, Cuquerella Sanchez, Javier a écrit :
Hi,

when I want to schedule a task within a project, only appears in the drop until 
2013.

[cid:[email protected]]

Regards

---------------------------------------------------
Javier Cuquerella Sánchez

[email protected]<mailto:[email protected]>
Atos Research & Innovation
Systems Administrator
Albarracin 25
28037-Madrid (SPAIN)
Tfno: +34.91.214.8080
www.atosresearch.eu<http://www.atosresearch.eu>
es.atos.net
 [cid:[email protected]]


---------------------------------------------------
Javier Cuquerella Sánchez

[email protected]<mailto:[email protected]>
Atos Research & Innovation
Systems Administrator
Albarracin 25
28037-Madrid (SPAIN)
Tfno: +34.91.214.8080
www.atosresearch.eu<http://www.atosresearch.eu>
es.atos.net
 [cid:[email protected]] 
[cid:[email protected]]







_______________________________________________

Fusionforge-general mailing list

[email protected]<mailto:[email protected]>

http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-general

<<inline: image001.gif>>

_______________________________________________
Fusionforge-general mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-general

Reply via email to