View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - date is wrong is real work allocation - ProjeQtOr
 
 

date is wrong is real work allocation

More
30 Dec 2013 01:57 - 30 Dec 2013 02:00 #1 by selina
Hi,

Just found that the date is wrong for real work allocation.
The date is 2013/12/30, but the week range is 12/31/2012 - 01/06/2013
I have to manually switch to 2014 week 1 :(

Please help.
Thanks a lot.
Last edit: 30 Dec 2013 02:00 by selina.

Please Log in or Create an account to join the conversation.

More
30 Dec 2013 10:17 - 01 Jan 2014 17:29 #2 by babynus
Hi,

Yes, in this end of year, there is an issue in the week and year calculation.
It sets today as week 1 of year 2013.

Hint : just change year with the year spinner to set it to 2014, keeping week to 1.
Avoid using day selector or select January 1st of 2014.

Here is the fix :

In /view/imputationList.php, replace line 12
$currentYear=strftime("%Y") ;
with
$currentYear=strftime("%Y") ;
if ($currentWeek==1 and strftime("%m")>10) {
	$currentYear+=1;
}

In /view/js/projeqtorWork.js, replace line 94
var week=getWeek(directDate.getDate(),directDate.getMonth()+1,directDate.getFullYear())+'';
with
var week=getWeek(directDate.getDate(),directDate.getMonth()+1,directDate.getFullYear())+'';
		if (week==1 && directDate.getMonth()>10) {
		  year+=1;
		}

Don't forget to clean browser cache before testing ;)

Babynus
Administrator of ProjeQtOr web site
Last edit: 01 Jan 2014 17:29 by babynus.

Please Log in or Create an account to join the conversation.

More
02 Jan 2014 01:47 #3 by selina
Hi,

Happy new year...
I applied the codes you provided but the date is still wrong because today (2014/1/1) I clicked the link, it is changed to year 2015 week 1. :dry:

Please Log in or Create an account to join the conversation.

More
02 Jan 2014 10:00 #4 by babynus
Hi,

I fixed the issue yesterday,
strftime("%Y")>10
must be replaced with
strftime("%m")>10
code below is updated.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.033 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.