<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — A non-numeric value encountered in \includes\date_functions.inc]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8034</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8034&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in A non-numeric value encountered in \includes\date_functions.inc.]]></description>
		<lastBuildDate>Thu, 07 Mar 2019 05:08:47 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: A non-numeric value encountered in \includes\date_functions.inc]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34424#p34424</link>
			<description><![CDATA[<p>Thanks for the quick fix Joe.</p><p>FYI. This was with PHP 7.2.15 on Windows 10 with XAMPP 7.2.15 (2019/03/01)</p><p>@apmuthu</p><p>Mmm formats (like format 5 - YYYYMmmDD) are even clear to our American friends, whereas 03/04 could be 4th of March or 3rd of April. :-)</p>]]></description>
			<author><![CDATA[null@example.com (PaulShipley)]]></author>
			<pubDate>Thu, 07 Mar 2019 05:08:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34424#p34424</guid>
		</item>
		<item>
			<title><![CDATA[Re: A non-numeric value encountered in \includes\date_functions.inc]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34417#p34417</link>
			<description><![CDATA[<p>@PaulShipley</p><p>This was a PHP 7.X error. Thanks for finding this and showing the resolution.</p><p>Committed to repo. The fixed file can be downloaded <a href="https://sourceforge.net/p/frontaccounting/git/ci/master/tree/includes/date_functions.inc">here</a>.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Wed, 06 Mar 2019 22:00:38 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34417#p34417</guid>
		</item>
		<item>
			<title><![CDATA[Re: A non-numeric value encountered in \includes\date_functions.inc]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34416#p34416</link>
			<description><![CDATA[<p>Which PHP-version is used?</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Wed, 06 Mar 2019 18:10:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34416#p34416</guid>
		</item>
		<item>
			<title><![CDATA[Re: A non-numeric value encountered in \includes\date_functions.inc]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34412#p34412</link>
			<description><![CDATA[<p>@joe: should this be included? Never seen such a date format in practical use though!</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 06 Mar 2019 17:12:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34412#p34412</guid>
		</item>
		<item>
			<title><![CDATA[A non-numeric value encountered in \includes\date_functions.inc]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34404#p34404</link>
			<description><![CDATA[<p>Hi,</p><p>I am getting numerous non-numeric value errors in date_functions.inc line 399 (like below).</p><p>A non-numeric value encountered in file: D:\Users\shipl\htdocs\fa24\includes\date_functions.inc at line 399<br />D:\Users\shipl\htdocs\fa24\includes\date_functions.inc:531: &nbsp; &nbsp; date2sql(&#039;2019/Mar/5&#039;)<br />D:\Users\shipl\htdocs\fa24\includes\references.inc:125: &nbsp; &nbsp; explode_date_to_dmy(&#039;2019/Mar/5&#039;)<br />D:\Users\shipl\htdocs\fa24\includes\references.inc:252: &nbsp; &nbsp; (references Object)-&gt;_parse_next(&#039;1&#039;,&#039;&#039;,(Array[3]))<br />D:\Users\shipl\htdocs\fa24\gl\gl_bank.php:203: &nbsp; &nbsp; (references Object)-&gt;get_next(&#039;1&#039;,&#039;&#039;,&#039;&#039;)<br />D:\Users\shipl\htdocs\fa24\gl\gl_bank.php:35: &nbsp; &nbsp; create_cart(&#039;1&#039;,&#039;0&#039;)</p><p>This issue seems to be due to the handling of non-numeric months (like in date formats 3,4,5). I am using date format 5 (YYYYMmmDD - 2019/Mar/5) in \includes\date_functions.inc</p><br /><p>&nbsp; &nbsp; if ($year+$day+$month) {<br />&nbsp; &nbsp; &nbsp; &nbsp; if ($how &gt; 2)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; global $tmonths;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $month = array_search($month, $tmonths);<br />&nbsp; &nbsp; &nbsp; &nbsp; }</p><p>I believe that this should be</p><p>&nbsp; &nbsp; if ($how &gt; 2)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; global $tmonths;<br />&nbsp; &nbsp; &nbsp; &nbsp; $month = array_search($month, $tmonths);<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; if ($year+$day+$month) {</p><p>The patch file is</p><p>399,404d398<br />&lt; &nbsp; &nbsp; if ($how &gt; 2)<br />&lt; &nbsp; &nbsp; {<br />&lt; &nbsp; &nbsp; &nbsp; &nbsp; global $tmonths;<br />&lt; &nbsp; &nbsp; &nbsp; &nbsp; $month = array_search($month, $tmonths);<br />&lt; &nbsp; &nbsp; }<br />&lt; <br />406c400,405<br />&lt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //to modify assumption in 2030<br />---<br />&gt; &nbsp; &nbsp; &nbsp; &nbsp; if ($how &gt; 2)<br />&gt; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; global $tmonths;<br />&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $month = array_search($month, $tmonths);<br />&gt; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&gt; &nbsp; &nbsp; &nbsp; &nbsp; //to modify assumption in 2030</p><p>Hope this helps</p>]]></description>
			<author><![CDATA[null@example.com (PaulShipley)]]></author>
			<pubDate>Tue, 05 Mar 2019 03:00:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34404#p34404</guid>
		</item>
	</channel>
</rss>
