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

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

15 et 16 avril 2025 (9h-12h30)

14 et 15 mai 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

23 et 24 avril (9h-12h30)

20 et 21 mai (9h-12h30)

 

 

 

date is wrong is real work allocation

More
30 Déc 2013 01:57 - 30 Déc 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 Déc 2013 02:00 by selina.

Please Connexion or Create an account to join the conversation.

More
30 Déc 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 Connexion 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 Connexion 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 Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.035 seconds

Paramétrages de cookies

×

Cookies fonctionnels

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

Veuillez vous connecter pour voir vos activités!

Autres cookies

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