<html>#2458: correct date in in "Simfactory Done" message
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Roland Haas</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td></td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td></td></tr>
</table>

<p>At the end of (every) *.out file simfactory currently outputs:</p>
<div class="codehilite"><pre><span></span>Mon Jan 20 09:34:59 CST 2020
Simfactory Done at date: 0
</pre></div>


<p>where the first is the date as produced by the <code>date</code> command and the <code>0</code> in the second line is <code>date</code>'s exit code. This is due to this Python code</p>
<div class="codehilite language-python"><pre><span></span><span class="n">display</span><span class="p">(</span><span class="s2">&quot;Simfactory Done at date: </span><span class="si">%s</span><span class="s2">&quot;</span> <span class="o">%</span> <span class="n">simenv</span><span class="o">.</span><span class="n">system</span><span class="p">(</span><span class="s2">&quot;date&quot;</span><span class="p">))</span> <span class="c1"># This is wrong because system doesn&#39;t return the command output</span>
</pre></div>


<p>(comment present in source code).</p>
<p>Pull request <a data-is-external-link="true" href="https://bitbucket.org/simfactory/simfactory2/pull-requests/44/fix-incorrect-use-of-system-date" rel="nofollow">https://bitbucket.org/simfactory/simfactory2/pull-requests/44/fix-incorrect-use-of-system-date</a> fixes this.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2458/correct-date-in-in-simfactory-done-message'>https://bitbucket.org/einsteintoolkit/tickets/issues/2458/correct-date-in-in-simfactory-done-message</a></p>
</html>