Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Start/end attributes are always imported using DATETIME format #649
To reproduce this issue, create a gexf file with a dynamic graph using the date timeformat and some nodes with start and end represented as datetime.
<gexf xmlns="http://www.gexf.net/1.2draft" version="1.2"> <graph timeformat="date" defaultedgestyle="directed" mode="dynamic"> <attributes class="node" mode="static"> <attribute type="string" id="0" title="desc"/> </attributes> <nodes> <node id="1" desc="a" start="2005-01-03 11:30:00" end="2005-01-03 11:35:00"> </node> <node id="2" desc="b" start="2005-12-15 12:30:00" end="2005-12-15 12:35:00"> </node> </nodes> </graph> </gexf>
The dynamic node attributes will be imported using the datetime format, and not the date format.
It is nice to import it using the best precision as possible, however it has some side effects.
This issue can be solved in three ways:
I prefer the first option, issuing a warning in the import report informing the user about the update.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I think the DATE format is a subset of the DATETIME format. Basically it's a DATETIME where hours, minutes and seconds are zeros.