-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always treat dates as Ruby Date objects.
If the date in the YAML is quoted, e.g., `"2023-06-24"`, then the Ruby YAML parser - quite reasonably - assumed that they *must* be strings, so does not parse them into Ruby Date objects. We always want certain fields to be treated as Date objects, so this commit ensures that those fields always return a Date object, or `''` if the date is invalid or empty. Fixes #122.
- Loading branch information
Showing
3 changed files
with
56 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters