Skip to content

csvImport: fix modified and creation time import #12379

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

andred
Copy link

@andred andred commented Aug 12, 2025

Creation and last modification time stamps are imported incorrectly during CSV import:
* the imported created time is set to the CSV's last modified time
* the imported last modified time is set to the CSV's icon index (which isn't a valid time usually and gets set to the current date & time instead).

The reason is commit 33a3796 ("Add ability to parse tags from CSV files") which shifted indices but missed to update all relevant time related code locations.

Update the missing indices for those two to fix the import.

Fixes: 33a3796 ("Add ability to parse tags from CSV files")

Screenshots

Testing strategy

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

Creation and last modification time stamps are imported incorrectly
during CSV import:
    * the imported created time is set to the CSV's last modified time
    * the imported last modified time is set to the CSV's icon index
      (which isn't a valid time usually and gets set to the current
      date & time instead).

The reason is commit 33a3796 ("Add ability to parse tags from CSV
files") which shifted indices but missed to update all relevant time
related code locations.

Update the missing indices for those two to fix the import.

* Closes keepassxreboot#12378

Fixes: 33a3796 ("Add ability to parse tags from CSV files")
Signed-off-by: André Draszik <[email protected]>
@droidmonkey
Copy link
Member

Yikes this is my fault

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: incorrect time stamps during CSV import
2 participants