<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Breaking change in DateFormat for non-string value</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/breaking-change-in-dateformat-for-non-string-value</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/bugs/breaking-change-in-dateformat-for-non-string-value/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>bakesteve on Breaking change in DateFormat for non-string value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/breaking-change-in-dateformat-for-non-string-value#p21865</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/breaking-change-in-dateformat-for-non-string-value#p21865</guid>
        	        	<description><![CDATA[<p>as a suggestion - perhaps should also allow formatter to fail gracefully?</p>
<p>so in jquery.fmatter line 58:</p>
<p>try {</p>
<p>v = $.fn.fmatter[formatType](cellval, opts, rwd, act); }</p>
<p>catch(ex) {&#160;</p>
<p>if(opts.throwFormatExceptions==true) { throw ex; }</p>
<p>else {</p>
<p>return v;</p>
<p>//just return the original value</p>
<p>}</p>
<p>}</p>
</p>
<p>Would also need to add throwFormatExceptions to opts if want to allow fine grained control.</p></p>
]]></description>
        	        	<pubDate>Fri, 28 Jan 2011 14:51:35 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Breaking change in DateFormat for non-string value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/breaking-change-in-dateformat-for-non-string-value#p21405</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/breaking-change-in-dateformat-for-non-string-value#p21405</guid>
        	        	<description><![CDATA[<p>Thank you,</p>
<p>Will be fixed.</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 23 Dec 2010 20:18:37 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Breaking change in DateFormat for non-string value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/breaking-change-in-dateformat-for-non-string-value#p21404</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/breaking-change-in-dateformat-for-non-string-value#p21404</guid>
        	        	<description><![CDATA[<p>Thanks! Of course <strong>typeof date</strong> must be used instead of&#160;<strong>typedef date</strong>.</p>
]]></description>
        	        	<pubDate>Thu, 23 Dec 2010 16:16:55 +0200</pubDate>
        </item>
        <item>
        	<title>ksherratt on Breaking change in DateFormat for non-string value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/breaking-change-in-dateformat-for-non-string-value#p21403</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/breaking-change-in-dateformat-for-non-string-value#p21403</guid>
        	        	<description><![CDATA[<blockquote>
<p>OlegK said:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7092' value='Select Code' data-codeid='sfcode7092' /></p>
<div class='sfcode' id='sfcode7092'>msMatch = ((typedef date === &#39;string&#39;) ? date.match(msDateRegExp): null),</div>
<p>Would the change solve your problem?</p>
</blockquote>
<p>s/typedef/typeof/</p>
<p>Yep, that&#39;s essentially what I did.</p>
]]></description>
        	        	<pubDate>Thu, 23 Dec 2010 15:55:19 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Breaking change in DateFormat for non-string value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/breaking-change-in-dateformat-for-non-string-value#p21402</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/breaking-change-in-dateformat-for-non-string-value#p21402</guid>
        	        	<description><![CDATA[<p>Hello ksherratt,</p>
<p>Probably one can fix the bug by changing the line <a href="https://github.com/tonytomov/jqGrid/blob/master/js/jquery.fmatter.js#L120" target="_blank">120</a> of the jquery.fmatter.js from</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6315' value='Select Code' data-codeid='sfcode6315' /></p>
<div class='sfcode' id='sfcode6315'>msMatch = date.match(msDateRegExp),</div>
<p>to the following</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9169' value='Select Code' data-codeid='sfcode9169' /></p>
<div class='sfcode' id='sfcode9169'>msMatch = ((typedef date === &#39;string&#39;) ? date.match(msDateRegExp): null),</div>
<p>Would the change solve your problem?</p>
<p>Best regards<br />Oleg</p></p>
]]></description>
        	        	<pubDate>Thu, 23 Dec 2010 15:19:12 +0200</pubDate>
        </item>
        <item>
        	<title>ksherratt on Breaking change in DateFormat for non-string value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/breaking-change-in-dateformat-for-non-string-value#p21400</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/breaking-change-in-dateformat-for-non-string-value#p21400</guid>
        	        	<description><![CDATA[<p>There appears to be a breaking change in the 3.8.2 version of DateFormat function (ln. 128 of jquery.fmatter.js) where the regex tests for a Microsoft format string.&#160; If the object passed as the &#39;date&#39; parameter is, in fact, a date value the &#39;match&#39; method is undefined and thus an exception is thrown.</p>
<p>msMatch = date.match(msDateRegExp)</p>
<p>presumably should be qualified for either a string or method existence.&#160; Have patched locally until 3.8.3 is released <img class="wp-smiley" src="/blog/wp-includes/images/smilies/icon_smile.gif" alt=":)" /></p>
]]></description>
        	        	<pubDate>Thu, 23 Dec 2010 13:33:44 +0200</pubDate>
        </item>
</channel>
</rss>