Bug report #11977

Date/Time Edit Widget behavior

Added by kosuke ASAHI over 9 years ago. Updated over 8 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Vectors
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:not reproducable
Crashes QGIS or corrupts data:No Copied to github as #:20184

Description

I couldn't set correct date/time to field on shapefile, when I set field type to date and use Date/Time Edit Widget.
I get always only current date.
In set field type to String and use Date/Time Edit Widget case, correct value to be set.Is this the correct behavior?

Tested QGIS 2.6 installed from OSGeo4W.

History

#1 Updated by Denis Rouzaud over 9 years ago

I can't reproduce in master. Maybe I don't fully understand your problem.

Do you use the automatic form generation or a custom UI file (Qt Designer)?

Can you provide a demo project?
Or give a step-by-step procedure to reproduce this issue?

#2 Updated by Giovanni Manghi over 9 years ago

  • Affected QGIS version changed from 2.6.0 to master
  • Status changed from Open to Feedback
  • Category set to Vectors

Or give a step-by-step procedure to reproduce this issue?

it is simple, add a column of type "date" to a shapefile, then give the column the "date/time" widget and set it to add... date and time.

Then edit the column: qgis will add date and time, and they seems to stick even after saving edits, but then close and reopen the table and times are gone.

Shapes cannot store time, see for example

http://forums.esri.com/MsgPrint.asp?c=93&f=1149&t=106423&m=542861

closing?

#3 Updated by kosuke ASAHI over 9 years ago

it is simple, add a column of type "date" to a shapefile, then give the column the "date/time" widget and set it to add... date and time.

Then edit the column: qgis will add date and time, and they seems to stick even after saving edits, but then close and reopen the table and times are gone.

OK, I understand shapefile cannot store time.
And one more step.
Reopen the shapefile and set to "date/time" widget, only current date/time appear on "date/time" widget.Is this the correct behavior?

#4 Updated by Giovanni Manghi over 9 years ago

Reopen the shapefile and set to "date/time" widget, only current date/time appear on "date/time" widget.Is this the correct behavior?

sorry I do not understand this other issue.

#5 Updated by Giovanni Manghi over 8 years ago

  • Resolution set to not reproducable
  • Status changed from Feedback to Closed

Closing for lack of feedback. Reopen if necessary.

Also available in: Atom PDF