Comment #6 on issue 1 by
lucas.sa...@cortex-intelligence.com: NaN in job
monitor screen
http://code.google.com/p/jwatch/issues/detail?id=1
The date value is read by the application as a String instead a Date. When
passing the date String to the Ext.util.Format.date method the parser
doesn't understand the timezone code in the end of the String.
What I did to solve the problem temporally was remove the timezone code
before parsing the date String.
I did something like:
function removeTimeZone(input) {
var patt = '\\d+/\\d+/\\d+\\s\\d+:\\d+:\\d+';
return input.match(patt);
}
So, the String '11/12/13 17:58:03 BRST' becomes '11/12/13 17:58:03' and the
parsing works like a charm.
I'll commit this fix in my fork at GitHub
(
https://github.com/lucassaldanha/jwatch).
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings