Skip to content

fix: correct Windows localized date encoding#1142

Merged
kristijanhusak merged 1 commit into
nvim-orgmode:masterfrom
OrzMiku:fix_date
May 8, 2026
Merged

fix: correct Windows localized date encoding#1142
kristijanhusak merged 1 commit into
nvim-orgmode:masterfrom
OrzMiku:fix_date

Conversation

@OrzMiku
Copy link
Copy Markdown
Contributor

@OrzMiku OrzMiku commented May 8, 2026

Summary

This PR fixes localized date formatting on Windows when the time locale uses a non-UTF-8 code page.

Related Issues

Related #

Closes #

Changes

  • Temporarily formats dates with a UTF-8 LC_TIME locale on Windows
  • Routes date string formatting through the shared os_date() helper
Before After
image image

Checklist

I confirm that I have:

  • Followed the
    Conventional Commits
    specification
    (e.g., feat: add new feature, fix: correct bug,
    docs: update documentation).
  • My PR title also follows the conventional commits specification.
  • Updated relevant documentation, if necessary.
  • Thoroughly tested my changes.
  • Added tests (if applicable) and verified existing tests pass with
    make test.
  • Checked for breaking changes and documented them, if any.

Comment thread lua/orgmode/objects/date.lua Outdated
Copy link
Copy Markdown
Member

@kristijanhusak kristijanhusak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kristijanhusak kristijanhusak merged commit 19209e6 into nvim-orgmode:master May 8, 2026
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants