Error in duration calculation when exporting to xml, csv

Discussion forum about Anuko Time Tracker
Post Reply
pbruccoleri
Posts: 2
Joined: Mon Jul 29, 2019 9:14 pm

Error in duration calculation when exporting to xml, csv

Post by pbruccoleri » Mon Jul 29, 2019 9:22 pm

I Have this record:
Begin: 10:51
Finish: 11:24
Duration: 0:33 (it's OK)

When generate a report, the duration is ok, but when exporting a csv or xml is wrong: 0.55'
csv:
"10:51","11:24","0.55"

xml:
<row>
<date><![CDATA[2019-07-24]]></date>
<user><![CDATA[pbruccoleri]]></user>
<project><![CDATA[Curso]]></project>
<start><![CDATA[10:51]]></start>
<finish><![CDATA[11:24]]></finish>
<duration><![CDATA[0.55]]></duration>
<note><![CDATA[tema 1]]></note>
</row>

wrc
Posts: 288
Joined: Tue May 25, 2010 8:30 pm

Re: Error in duration calculation when exporting to xml, csv

Post by wrc » Tue Jul 30, 2019 3:29 am

Looks like you are exporting decimal durations, 0.55 hour is 33 minutes.

pbruccoleri
Posts: 2
Joined: Mon Jul 29, 2019 9:14 pm

Re: Error in duration calculation when exporting to xml, csv

Post by pbruccoleri » Tue Jul 30, 2019 3:47 pm

Later in the forum I found that it is according to the configuration. I am using the web anuko, and nowhere does it clarify it, that's why I asked. Besides, it is rare for the pdf to show the duration in one format and in csv and xml in another.
Thank you.

admin
Posts: 560
Joined: Fri Oct 08, 2004 9:46 pm
Location: Vancouver, Canada
Contact:

Re: Error in duration calculation when exporting to xml, csv

Post by admin » Tue Jul 30, 2019 4:17 pm

pbruccoleri wrote:
Tue Jul 30, 2019 3:47 pm
Later in the forum I found that it is according to the configuration. I am using the web anuko, and nowhere does it clarify it, that's why I asked. Besides, it is rare for the pdf to show the duration in one format and in csv and xml in another.
Thank you.
We can make exporting decimal durations group-configurable and to be applied to all exports (csv, xml, and pdf). If you are interested, open a support incident on Anuko website ($40) and this will be done.

Post Reply