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

Timestamps with the format <yyyy-mm-dd> (without day of the week) are not recognized but <yyyy-mm-dd ddd> are [org-mode] #11288

Open
1 of 2 tasks
kauesena opened this issue May 4, 2024 · 0 comments
Labels
format:org-mode timestamp :type/enhancement Enhancement to product. Does not affect the overall basic use.

Comments

@kauesena
Copy link

kauesena commented May 4, 2024

Search first

  • I searched and no similar issues were found

What Happened?

I went to edit my custom.css file to add some highlighting to timestamps and noticed that <yyyy-mm-dd ddd> (e.g. <2025-01-01 Wed>) got properly coloured while <yyyy-mm-dd> did not. Using the inspection tool I noticed that only the first timestamp format resulted in a span.timestamp element.

Reproduce the Bug

  1. Append a timestamp such as <2025-01-01> to a heading;
  2. Add a timestamp such as <2025-01-01 Wed> to another heading;
  3. Use the inspection tool to notice that only the second is parsed as span.timestamp..

Expected Behavior

Both formats to generate span.timestamp since they are both proper org-mode syntax, and have essentially the same information.

Screenshots

No response

Desktop or Mobile Platform Information

No response

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)
@andelf andelf added :type/enhancement Enhancement to product. Does not affect the overall basic use. format:org-mode timestamp labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format:org-mode timestamp :type/enhancement Enhancement to product. Does not affect the overall basic use.
Projects
None yet
Development

No branches or pull requests

2 participants