<div dir="ltr">Hello Jukka,<div><br></div><div><br></div><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 5, 2014 at 9:16 AM, Jukka Rahkonen <span dir="ltr"><<a href="mailto:jukka.rahkonen@mmmtike.fi" target="_blank">jukka.rahkonen@mmmtike.fi</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class=""><div class="h5"><br></div></div>
I believe that this is not an accurate description: "only the date is saved<br>
as a string" but it is rather "only the date is saved as 'date'"<br></blockquote><div><br></div><div>You are right the field with the name "time" (of type QDateTime) when converted into shapefile is saved as a QDate field. </div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I am not sure how much it is a bug because the dbf format that shapefile is<br>
using for storing the attributes simply does not support DateTime but only<br>
Date.</blockquote><div><br></div><div>Ah ok, instead of a bug this is more a Shapefile limitation. And in this case I agree that using Qdate instead of a string, might very well be the best approach.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
But if you do not necessarily need just shapefiles a<br>
better alternative would be to convert data into Spatialite.<br></blockquote><div><br></div><div>I did solve my problem, passing the data directly to Postgis using the DBManager.</div><div><br></div><div>Thank you for your reply.</div>
<div><br></div><div>Alexandre Neto</div><div><br></div></div></div></div>