<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged delphi</title>
<link>https://overflow.efficy.io/?qa=tag/delphi</link>
<description>Powered by Question2Answer</description>
<item>
<title>EFFICY 11 : invalid timestamp</title>
<link>https://overflow.efficy.io/?qa=3197/efficy-11-invalid-timestamp</link>
<description>&lt;p&gt;Hi everyone, &lt;/p&gt;

&lt;p&gt;I found this weird bug during a migration from 10sp2 to efficy 11.&lt;/p&gt;

&lt;p&gt;This code, in a workflow : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;dateReturn = query.fieldByName('actiBegin').AsFloat;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Return : 43201.614583333336.&lt;/p&gt;

&lt;p&gt;As you can see, this in a valid date in delphi, and this is the date I expected : &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=10092917754891026752&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;But, when I try to use it in a date field, I got an error, saying that this is an invalid timestamp : &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=8683816877534534649&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;'622884827.-25975808' is not a valid timestamp&lt;/p&gt;

&lt;p&gt;I had to use this trick in order to use my date : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;dateReturn = Math.round(query.fieldByName('actiBegin').AsFloat*1000000)/1000000 + 0.000001;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Is there something I missed ? &lt;/p&gt;

&lt;p&gt;In Conficy, the field is well defined and there is no &quot;datalength&quot; added in sys_fields. &lt;br&gt;
I use the last build of Efficy 11.&lt;/p&gt;

&lt;p&gt;Thanks, &lt;/p&gt;

&lt;p&gt;Loïc&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3197/efficy-11-invalid-timestamp</guid>
<pubDate>Sat, 26 May 2018 12:57:38 +0000</pubDate>
</item>
<item>
<title>Delphi Server Scripts not supported anymore since Efficy10SP1</title>
<link>https://overflow.efficy.io/?qa=2198/delphi-server-scripts-supported-anymore-since-efficy10sp1</link>
<description>&lt;p&gt;Server scripts and also scheduled scripts and datasynchro scripts?&lt;/p&gt;
</description>
<category>Efficy 10 SP2</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2198/delphi-server-scripts-supported-anymore-since-efficy10sp1</guid>
<pubDate>Mon, 16 Jan 2017 16:09:39 +0000</pubDate>
</item>
</channel>
</rss>