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

Incorrect date formatting when generating index pages of the files in the same directory #3

Open
iraqnroll opened this issue Nov 9, 2024 · 2 comments

Comments

@iraqnroll
Copy link

iraqnroll commented Nov 9, 2024

The current implementation of md_index() appears to have a bug where the generated list of markdown files in the index page of a folder has a raw crtime value appended to each list item instead of a human-readable date. This might be a result of bad date formatting in the markdown file, but I was careful to use GNU-friendly formats.

Example :
2024_11_09_13v

wrapping crtime_raw values inside rfc_date seems to fix the issue, although im pretty sure it breaks the automatic sorting by create date.

image

image

@iraqnroll iraqnroll reopened this Nov 9, 2024
@microsounds
Copy link
Owner

Hi, can you provide some sample files so I can reproduce the issue?

@iraqnroll
Copy link
Author

Sorry for such a late reply and first of all thank you for kagami ! You can find everything you need to reproduce the issue in my github repo. The markdown page that was used as an example above is here

As you can see, the markdown date seems to be okay, i referenced your website and what was written in kagami docs :
image

If you need any info on the environment, let me know.

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

No branches or pull requests

2 participants