View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - All projects- Ticket view not working in 3.4.0 for some users intermittantly - Page 3 - 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

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

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

All projects- Ticket view not working in 3.4.0 for some users intermittantly

More
24 Juil 2013 11:18 #13 by climb4fun
Sorry, have not been as exact: You have to change this in your browsers paramenters, not in Projectorria. :oops:

Please Connexion or Create an account to join the conversation.

More
24 Juil 2013 11:26 - 24 Juil 2013 11:32 #14 by Rexeh
Ok, looks like that does indeed work.

There is of course only one proper English, and that is English UK :P

That is a very strange error, not seen that before.

I will consider this one fixed... but certainly just a workaround until light and be shed on why this happens.

Great find climb4fun
Last edit: 24 Juil 2013 11:32 by Rexeh.

Please Connexion or Create an account to join the conversation.

More
24 Juil 2013 12:05 #15 by babynus
Hi,

I found the cause of the issue : it is a Dojo regression in V1.9.
The dojo.date.locale.parse fails when time format in 12 hours based (with AM/PM).
Every locale with 24 hours locale works fine.

I so could think of a workaround :
In /view/js/projectorFormatter.js, replace function dateTimeFormatter() with this one :
function dateTimeFormatter(value) {
  if (value && value.length==19) {
  	vDate=dojo.date.locale.parse(value, {datePattern: "yyyy-MM-dd", timePattern: "HH:mm:ss", selector: 'date'});
  	if (! vDate) {
  	  return dateFormatter(value.substr(0,10))+" "+value.substr(11);
  	}
    return dojo.date.locale.format(vDate, {formatLength: "short", fullYear: true});
  } else {
  	return value;
  }
}

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: climb4fun

Please Connexion or Create an account to join the conversation.

More
24 Juil 2013 12:39 #16 by climb4fun
Hi Babynus,

congratulation, bug is fixed. It works. :woohoo:

Btw. I dismissed all previous bugfix suggestions and made only your suggested workaround (see below).

Thanks,

Klaus

Please Connexion or Create an account to join the conversation.

More
24 Juil 2013 17:39 #17 by babynus
I tested with Dojo 1.9.1 : issue persist.
I opend a Ticket in Dojo bug Tracker : #17342.

I found another fix which is still better than previous, as it preserves expected timle format:
function dateTimeFormatter(value) {
  if (value && value.length==19) {
  	vDate=dojo.date.locale.parse(value, {datePattern: "yyyy-MM-dd", timePattern: "HH:mm:ss", selector: 'date and time'});
  	if (! vDate) {
  	  vDate=new Date(value.substr(0,4),value.substr(5,2),value.substr(8,2),value.substr(11,2),value.substr(14,2),value.substr(17,2),0);	
  	  if (! vDate) {
  	    return dateFormatter(value.substr(0,10))+":"+value.substr(11,5);
  	  }
  	}
    return dojo.date.locale.format(vDate, {formatLength: "short", fullYear: true});
  } else {
  	return value;
  }
}
function timeFormatter(value) {
  if (value.length==19) {
  	vDate=dojo.date.locale.parse(value, {datePattern: "yyyy-MM-dd", timePattern: "HH:mm:ss", selector: 'date and time'});
  	if (! vDate) {
  		vDate=new Date(value.substr(0,4),value.substr(5,2),value.substr(8,2),value.substr(11,2),value.substr(14,2),value.substr(17,2),0);	
    	if (! vDate) {
    	  return value.substr(11,5);
    	}
    }
    return dojo.date.locale.format(vDate, {formatLength: "time"});
  } else {
  	return value;
  }
}
This fix will be included in V3.4.1

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: climb4fun

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.081 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.