Skip to content

feat: Add year and second to Timestamp when exporting CSV - #238

Merged
SakiRinn merged 3 commits into
SakiRinn:masterfrom
Yousa-Mirage:add-year-in-export-time
Feb 14, 2026
Merged

feat: Add year and second to Timestamp when exporting CSV#238
SakiRinn merged 3 commits into
SakiRinn:masterfrom
Yousa-Mirage:add-year-in-export-time

Conversation

@Yousa-Mirage

Copy link
Copy Markdown
Contributor

Description

Previously, when exporting CSV, timestamps were converted to the format MM/dd HH:mm, missing the year and second information, which caused confusion when there was cross-year data and made it impossible to accurately distinguish the order of items.

Change

Change to yyyy-MM-dd HH:mm:ss format for clearer time export.

@SakiRinn

SakiRinn commented Feb 1, 2026

Copy link
Copy Markdown
Owner

Could you also modify the date display format on the history page to make it consistent? I think this would be a good PR.

@Yousa-Mirage

Copy link
Copy Markdown
Contributor Author

I compiled the app and it works well. Both time is yyyy-MM-dd HH:mm:ss now.

In history display:

图片

In exported CSV:

图片

@SakiRinn

SakiRinn commented Feb 4, 2026

Copy link
Copy Markdown
Owner

I am concerned about version compatibility and whether the new software supports the database date format of the old version.

I think you should provide backward compatibility for the legacy database. If the system detects an old version, it should trigger an automatic conversion. This allows users to migrate to the new version smoothly and seamlessly.

@Yousa-Mirage

Copy link
Copy Markdown
Contributor Author

Can you tell me what the date format is in the old version of the database? I only know that the current database stores timestamps so that they can be converted into various time formats.

您能否告知旧版数据库中的日期格式是什么?我只知道当前数据库存放的是时间戳,以便转为各种时间格式。

@SakiRinn
SakiRinn requested a review from A-nony-mous February 5, 2026 07:52
@SakiRinn

Copy link
Copy Markdown
Owner

After evaluation, we found no compatibility issues and the merge has been completed.
Thank you for your contribution!

@SakiRinn
SakiRinn merged commit 643e244 into SakiRinn:master Feb 14, 2026
2 checks passed
@Yousa-Mirage

Copy link
Copy Markdown
Contributor Author

Thank you

@Yousa-Mirage
Yousa-Mirage deleted the add-year-in-export-time branch February 14, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants