Skip to content

Hardcoded Timezone in jekyllYamlConverterAdaptor.ts breaks functionality #1719

@signo1337

Description

@signo1337

Hello

I created a test note to publish to my github repo. The date shown in the article overview of the siyuan publisher plugin is correct (2025-04-23), but on github the note appears as from tomorrow, 2025-04-24. I assume something is wrong, maybe hardcoded timezone in the plugin?

Thanks.

Edit:

I think the problem lies in this file: src/adaptors/api/jekyll/jekyllYamlConverterAdaptor.ts, potentially this line yamlFormatObj.yamlObj.date = DateUtil.formatIsoToZh(post.dateCreated.toISOString(), true). This would explain the date shift.

As the date of the pushed file lies in the future this way, github jekyll workflow won't publish the article.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions