Feature request #3569

OGR DateTime fields support

Added by jekhor - over 13 years ago. Updated over 11 years ago.

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

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 -, 2011-03-08 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 2013-04-04

History

#1 Updated by Martin Dobias over 13 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 13 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 13 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 13 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#5 Updated by Giovanni Manghi over 12 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

#6 Updated by Pirmin Kalberer about 12 years ago

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

#7 Updated by Jürgen Fischer over 11 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