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

Implemented a better date conversion for 'date:' and 'modified:' fields. #297

Merged
merged 2 commits into from
Nov 3, 2024

Commits on Oct 25, 2024

  1. Implemented a better date conversion for 'date:' and 'modified:' fields.

    This PR fixes the following bad dates that were accepted previously:
      *  date: 01-01-24 was accepted as 0001-01-24
      *  date: 24-01-24 was accepted as 0024-01-24
    
    These will result in an error now.
    
    Recently in 300d61e the US-style dates
    were eliminated. Unfortunately, these are still very much used.
    I propose we continue supporting such dates, but we only accept unambiguous forms.
    
    Therefore, this commit implements and tests the dates of the following formats:
       * XXXX-XX-XX   -- fully corresponds to yaml date format
       * XXXX/XX/XX, XXXX/XX/X, XXXX/X/XX, XXXX/X/X -- legacy, often occurs in (old) US-based sigmas
    aviaconstructor authored and aviaconstructor committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    fe828f4 View commit details
    Browse the repository at this point in the history
  2. Formatting is applied

    aviaconstructor authored and aviaconstructor committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    33970e9 View commit details
    Browse the repository at this point in the history