Feature request #3569

OGR DateTime fields support

Added by jekhor - over 6 years ago. Updated about 4 years ago.

Status:Closed
Priority:Low
Assignee:Jürgen Fischer
Category:Data Provider
Pull Request or Patch supplied:No Resolution:fixed
Easy fix?:No

Description

Now QGis doesn't support DateTime fields in OGR datasources and converts them to strings. There is patch which fixing this attached.

3569_ogr_datetime_fix.patch Magnifier (1.74 KB) jekhor -, 03/08/2011 07:35 AM


Related issues

Related to QGIS Application - Bug report #7503: save as can't export if datasource has field with date ty... Closed 04/04/2013

History

#1 Updated by Martin Dobias over 6 years ago

I haven't tried the patch but I would expect that more changes should be done for proper support. IIRC there are various pieces of code in the source tree which only expect int, double or string to be contained in QVariant as an attribute value.

#2 Updated by Jürgen Fischer over 6 years ago

Replying to jekhor:

Now QGis doesn't support DateTime fields in OGR datasources and converts them to strings. There is patch which fixing this attached.

Which data source are you actually using? Shapefiles at least don't support OGRDateTime at least...

#3 Updated by jekhor - over 6 years ago

Replying to [comment:3 jef]:

Replying to jekhor:

Now QGis doesn't support DateTime fields in OGR datasources and converts them to strings. There is patch which fixing this attached.

Which data source are you actually using? Shapefiles at least don't support OGRDateTime at least...

GPX.

#4 Updated by Giovanni Manghi almost 6 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#5 Updated by Giovanni Manghi over 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

#6 Updated by Pirmin Kalberer almost 5 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

#7 Updated by Jürgen Fischer about 4 years ago

  • Pull Request or Patch supplied set to No
  • Status changed from Open to Closed
  • Operating System deleted (Debian)
  • Status info deleted (0)
  • Resolution set to fixed

implemented in 052dab81

Also available in: Atom PDF