-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dates are not written in the table of attributes when using the calendar widget #16410
Comments
Author Name: Nathan Woodrow (@NathanW2) If there is no date format supplied the date will not be written back. Should we close this or can you think of a better fix? |
Author Name: Giovanni Manghi (@gioman) Nathan Woodrow wrote:
I see 4 problems: I just tested and the date is not written (if using the calendar widget) even if the column is of type date or date/time. The columns were added via the "fields" tab in the vector properties the types date and date/time are not available when creating a new shapefile from scratch (this I guess is a new bug) if dates can be written only in a date column, then at least for shapes this is a change of behaviour since 1.8 (where the user was allowed to write dates into a text field) and should be at least very well documented older projects that had a calendar widget applied to a text column will open as empty columns in QGIS 2.0 cheers! |
Author Name: Nathan Woodrow (@NathanW2) Giovanni Manghi wrote:
This is still the case. You can still write dates to string columns you just have to supply the format of the date string. |
Author Name: Giovanni Manghi (@gioman)
but not with the calendar widget, correct? |
Author Name: Nathan Woodrow (@NathanW2) Giovanni Manghi wrote:
Yeah does for me |
Author Name: Giovanni Manghi (@gioman)
odd, does not for me at the moment on Linux on both date and text fields. There was a recent fix? |
Author Name: Giovanni Manghi (@gioman) Nathan Woodrow wrote:
just tested on windows/osgeo4w/master and no date is written in a "date" column nor in a "string" one using the calendar widget. |
Author Name: Giovanni Manghi (@gioman) Now I see, the "date format" parameter is mandatory, without it then the widget does not work as does not use any default format... are the possible formats documented in the master manual? Can we add a few examples in the widget dialog? there is plenty of space.
|
Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 7451
Affected QGIS version: master
Redmine category:vectors
subject says it all. Tested on master.
The text was updated successfully, but these errors were encountered: