You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistent journal block/name format after upgrade to 20260508 #884
Now I find my journal before May 9th has block/name like "2026-05-09", while the journal since May 10th is "may 10th, 2026".
The block/title keeps in the same format as my setting.
This seems break plugin API like getPage() and pushState() when the journal date "2026-05-18" is input parameter. And my plugin fails to work.
Reproduce the Bug
Install 2.0.1-alpha+nightly.20260429 62eac11 and create a journal page.
Upgrade to new version and create another journal page.
Check the page data of both journals. The block/name is in different format.
changed the title [-]Inconsistent journal `block/name` format after 20260510[/-][+]Inconsistent journal `block/name` format after upgrade to 20260508[/+]on May 18, 2026
I have some journal pages, which where created before the fix, and these pages I cannot reference in other pages. I can select the page (e.g. with "Today" selection), but when I leave the line the content gets removed.
Still on current master (d06ded9971): journals created before 69c4d36 keep a :block/name in the user's date format, while newer ones get the default MMM do, yyyy name, so a lookup by formatted title finds one kind or the other.
logseq/logseq#13883 moves the app's own journal lookups (date-property links, prev/next/tomorrow journal, Quick Add, the mobile calendar, the date search) to :block/journal-day, so those no longer depend on the name. What it leaves is any ldb/get-page call with a formatted journal title, including the plugin API case in this issue (getPage("2026-05-18")). That needs a choice:
resolve a title that parses as a journal date by its journal day inside get-page, or
migrate the old journals' :block/name to the default format.
Activity
[-]Inconsistent journal `block/name` format after 20260510[/-][+]Inconsistent journal `block/name` format after upgrade to 20260508[/+]mentho-mh commentedon May 19, 2026
Commit
69c4d36fix db/test issue #830 pushed at 2026/4/29.After that,
block/namedefault also changed to(def ^:api default-journal-title-formatter "MMM do, yyyy")Maybe we can have that batch-updates all existing journal blocks/names to the latest format, ensuring that APIs and date references function properly.
silicht commentedon Jun 1, 2026
I think the batch-update is required.
I have some journal pages, which where created before the fix, and these pages I cannot reference in other pages. I can select the page (e.g. with "Today" selection), but when I leave the line the content gets removed.
Developer tools report following error:
Request:
{ [ "~#list", [ "logseq_db_Work", [ [ "~:save-block", [ [ "^ ", "~:block/tx-id", 537084654, "~:block/uuid", "~u6a1d116e-2f6c-4468-a304-6101286c8d9a", "~:block/updated-at", 1780289902516, "~:block/refs", [ "^0", [ [ "^ ", "~:block/name", "jun 1st, 2026", "~:block/title", "2026-06-01 Monday", "^3", "~u00000001-2026-0601-0000-000000000000", "~:block/journal-day", 20260601, "~:block/tags", [ "~:logseq.class/Journal" ] ] ] ], "~:block/created-at", 1780289902516, "~:logseq.property/created-by-ref", [ "~#datascript/Entity", [ "^ ", "~:db/id", 13206 ] ], "^9", [ "^0", [] ], "^7", "[[00000001-2026-0601-0000-000000000000]]", "~:block.temp/load-status", "~:self", "~:block/parent", [ "^=", [ "^ ", "^>", 24135 ] ], "~:block/order", "a0", "~:block/page", [ "^=", [ "^ ", "^>", 24132 ] ] ], null ] ] ], [ "^ ", "~:skip-properties?", true, "~:outliner-op", "^1", "~:db-sync/tx-id", "~ua42b83fa-8f6c-435b-84e4-c82c047603cb", "~:client-id", "4d5bcc2a-e9e6-4da3-93bd-6db74b4c1ac8", "~:local-tx?", true ] ] ] }Response:
{ "ok": false, "error": { "code": "exception", "message": "journal page protected attr updated" } }dev data of the not working page:
dev data of a working page:
I hope this helps.
yuxi-liu-wired commentedon Oct 27, 2026
Still on current master (d06ded9971): journals created before 69c4d36 keep a
:block/namein the user's date format, while newer ones get the defaultMMM do, yyyyname, so a lookup by formatted title finds one kind or the other.logseq/logseq#13883 moves the app's own journal lookups (date-property links, prev/next/tomorrow journal, Quick Add, the mobile calendar, the date search) to
:block/journal-day, so those no longer depend on the name. What it leaves is anyldb/get-pagecall with a formatted journal title, including the plugin API case in this issue (getPage("2026-05-18")). That needs a choice:get-page, or:block/nameto the default format.Happy to implement either.
fix(journals): look journal pages up by journal day, not by a formatt…
fix(journals): look journal pages up by journal day, not by a formatt…
fix(journals): look journal pages up by journal day, not by a formatt…
fix(journals): look journal pages up by journal day, not by a formatt…
fix(journals): look journal pages up by journal day, not by a formatt…
fix(journals): look journal pages up by journal day, not by a formatt…
fix(journals): look journal pages up by journal day, not by a formatt…
fix(journals): look journal pages up by journal day, not by a formatt…
fix(journals): look journal pages up by journal day, not by a formatt…
fix(journals): look journal pages up by journal day, not by a formatt…
fix(journals): look journal pages up by journal day, not by a formatt…
fix(journals): look journal pages up by journal day, not by a formatt…
fix(journals): look journal pages up by journal day, not by a formatt…