fix(cli): show the last sync as a time in sync list and devices list

`pdfs sync list` and `pdfs devices list` printed the last sync as epoch
seconds, such as `synced: 1793570850` in issue #46. Both columns now go
through `last_synced`, which formats it like `pdfs activity` and prints
`never` for a folder that never synced. `--json` output is unchanged
(B278).
This commit is contained in:
nvrl committed 2026-11-02 15:18:31 +01:00
1 parent 04f4610e4d
commit bbd913b87d
3 files changed
+46 -10

No files matched your search

+3
View File
@@ -78,6 +78,9 @@ scratch (user data in `staging/` and `recovery/` is never touched by this).
- **A restore that skipped folders is reported as failed**, with the reason for each, instead of
"restored 0 folder(s)" as a success (B269).
- **`pdfs sync list` and `pdfs devices list` show when a folder last synced as a time**, such as
`synced: 11-01 22:07` in UTC like `pdfs activity`, instead of seconds since 1970 (B278, #46).
- **"You're offline" no longer appears for a cache or database error** when pinning, unpinning,
searching or loading a folder (B266, #38). The app shows the actual error.