View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on 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
 
 

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

More
24 Jul 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 Log in or Create an account to join the conversation.

More
24 Jul 2013 11:26 - 24 Jul 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 Jul 2013 11:32 by Rexeh.

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

More
24 Jul 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 Log in or Create an account to join the conversation.

More
24 Jul 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 Log in or Create an account to join the conversation.

More
24 Jul 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 Log in or Create an account to join the conversation.

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