<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[LuxCal Web Calendar — Bug in function "calcFTDate" of displays]]></title>
		<link>https://www.luxsoft.eu/lcforum/viewtopic.php?id=441</link>
		<atom:link href="https://www.luxsoft.eu/lcforum/extern.php?action=feed&amp;tid=441&amp;type=rss" rel="self" type="application/rss+xml"></atom:link>
		<description><![CDATA[The most recent posts in Bug in function "calcFTDate" of displays.]]></description>
		<lastBuildDate>Mon, 08 Aug 2022 19:58:20 +0000</lastBuildDate>
		<generator>PunBB 1.4.4</generator>
		<item>
			<title><![CDATA[Re: Bug in function "calcFTDate" of displays]]></title>
			<link>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=1665#p1665</link>
			<description><![CDATA[<p>Hi Stefan,</p><p>You are an excellent calendar tester Stefan! You&#039;re right!</p><p>I&#039;ve changed the two bugs in display 1 - 3 and will include them in the next calendar version.</p><p>Thanks very much.</p><p>Roel</p>]]></description>
			<author><![CDATA[null@example.com (Roel)]]></author>
			<pubDate>Mon, 08 Aug 2022 19:58:20 +0000</pubDate>
			<guid>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=1665#p1665</guid>
		</item>
		<item>
			<title><![CDATA[Bug in function "calcFTDate" of displays]]></title>
			<link>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=1660#p1660</link>
			<description><![CDATA[<p>Hi,<br>think there is something wrong in the <strong>&quot;calcFTDate&quot; function</strong> of the displays 1 to 3.<br>Found this, because of setting &quot;First Day Of Week&quot; to &quot;1&quot;. But this did not work within the display files. So I tried to figure this out:</p><p><strong>First: A PHP error is shown when using &quot;WEEK&quot; for from or till date</strong><br></p><div class="codebox"><pre><code>Notice: Undefined variable: set in /volume1/web/lc521ff090/display3.php on line 151 Notice: Trying to access array offset on value of type null in /volume1/web/lc521ff090/display3.php on line 151</code></pre></div><p>To fix this the function should have the $set variable as global: <br></p><div class="codebox"><pre><code>global $futEvts, $set;</code></pre></div><p><strong>Second: wrong brackets within in the function under &quot;case: &#039;WEEK&#039; &quot;</strong><br>Instead of <br></p><div class="codebox"><pre><code>$dStamp = time() + ($set[&#039;weekStart&#039;] + $wkDay * 86400) + ($mult * 604800); //time first day</code></pre></div><p>it should be<br></p><div class="codebox"><pre><code>$dStamp = time() + (($set[&#039;weekStart&#039;] + $wkDay) * 86400) + ($mult * 604800); //time first day</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (stefan)]]></author>
			<pubDate>Sun, 07 Aug 2022 14:12:49 +0000</pubDate>
			<guid>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=1660#p1660</guid>
		</item>
	</channel>
</rss>
