Skip to content
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

Importing/exporting CSV/HTML with dates does not work as expected #5831

Closed
ysard opened this issue Dec 14, 2020 · 5 comments
Closed

Importing/exporting CSV/HTML with dates does not work as expected #5831

ysard opened this issue Dec 14, 2020 · 5 comments
Labels

Comments

@ysard
Copy link

ysard commented Dec 14, 2020

Overview

Problems/missing doc during the import/export of dates in CSV and HTML files.

Steps to Reproduce

  • Import CSV
  • Export CSV
  • Export HTML

Expected Behavior

Actual Behavior

  • Modification and creation dates are not exported neither in CSV nor in HTML format.
  • Importing dates from a CSV file only supports ISO 8061 format, and does not support milliseconds timestamp,
    which is the export format used by Firefox Lockwise (the default password manager of Firefox).

Context

KeePassXC - 2.6.2
Revision: e9b9582

Operating System: Linux
Desktop Env: KDE
Windowing System: X11

@ysard ysard added the bug label Dec 14, 2020
@droidmonkey
Copy link
Member

This is already fixed, will be part of 2.6.3

@ysard
Copy link
Author

ysard commented Dec 15, 2020

Thank you for your quick response but I respectfully disagree.

After testing on the following version:

KeePassXC - Version 2.7.0-snapshot
Version Type: Snapshot
Revision: 404fd94

The timestamp in seconds is much more problematic than the time in ISO 8601,
especially since it is internally reconverted in milliseconds.
Thus, ISO 8601 allows precision that a timestamp (integer) in seconds does not.

This is a compatibility issue with other programs.

Please reconsider this portion of the code :)

Would you accept a PR on this?

@droidmonkey
Copy link
Member

droidmonkey commented Dec 15, 2020

We are not making further changes to the date format acceptability. There is a live preview to confirm the import, so yes there is a warning of sorts. There is no such thing as csv compatibility, everyone does there own thing, you have to confirm the data on your end to achieve success.

Documentation will be updated based on your feedback.

@droidmonkey
Copy link
Member

droidmonkey commented Dec 15, 2020

I am not aware of any form of unix time that has a decimal or comma in it, the whole point is millisecond precision based off of jan 1, 1970 start point.

@droidmonkey
Copy link
Member

Thought about this a little more, I would accept a pr that converts a seconds timestamp with decimal to milliseconds timestamp, as well as strips the milliseconds from iso format.

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

No branches or pull requests

2 participants