When changing between date formats backlinks to journal pages aren't valid anymore and pages with dates are created #7933
Replies: 5 comments
-
I don't know if it aligns with your design principles for logseq, but maybe it's an option to save the date in a standardized format like ISO 8601 to disk and render it differently in the frontend based on user selection. |
Beta Was this translation helpful? Give feedback.
-
@defaulvlan Yes, the original dates will be invalid for now. Using unified format to store sounds good to me. I'm happy to review any PR on this. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info. I just wanted to add that for me this is also a data stability issue. Because for my one graph where I changed the date format to Only the data in |
Beta Was this translation helpful? Give feedback.
-
@itsamemarkus Is this happening on the latest version? |
Beta Was this translation helpful? Give feedback.
-
What about having an option, when preferred date format is changed from the settings, to optionally change journal backlinks as well? For example, if current configuration is Alternatively, just having an external tool that does this would be very helpful already. Does anyone know one that does this already? Edit: I've managed to do this manually running the following lines:
|
Beta Was this translation helpful? Give feedback.
-
What happened?
(Info: this issue might relate to #6377 )
When you have the date format
EEEE, yyyy/MM/dd
pages likeFriday, 2022
orSaturday, 2022/09
are generated when you create a journal page. (weird, but journal pages still working at this point)When you change the date format to something else like
yyyy-MM-dd
all backlinks to journals aren't valid anymore.(additional info: In my personal graph with
EEEE, yyyy/MM/dd
I currently can't re-import the graph if I delete\AppData\Roaming\Logseq
- not all, but some journal pages missing, although the markdown data is injournals
folder.)Reproduce the Bug
EEEE, yyyy/MM/dd
/today
or/date
All pages
there are journal structured pages there (not intended, right?)yyyy-MM-dd
Expected Behavior
No auto generated pages like this:
if you interact with them they get written to the pages folder
Links to journals should work, although you change date format
I'd expect logseq would recognize every format it offers in
Editor -> Preferred file format
Screenshots
2022-09-03_logseq-date-format-handling.mp4
Desktop Platform Information
Windows 11 any build
Logseq 0.8.4
Mobile Platform Information
not tested
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions