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

fix(plugins/dates): add dmy option to fix #1131 #1132

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

hchiam
Copy link
Contributor

@hchiam hchiam commented Jul 30, 2024

add dmy option to fix #1131

based on discussion in another PR: #1129 (comment)

for future reference for myself and maybe helpful for other devs, here's the path of references that led me to find the place i edited in the compromise-dates plugin code:

dates.js get() and others call parseDates > parse > parseRange > parseRanges > tryFull > parseDate > parse > explicit > parseExplicit > new Day() > Unit > spacetime (spacetime has a dmy option)

i saw spacetime used in other places and thought of adding dmy: context.dmy there too, but i kept my changes minimal for my first try in this pr

excluded the automatic changes to the package-lock version numbers

Copy link
Contributor Author

@hchiam hchiam left a comment

Choose a reason for hiding this comment

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

Ready for review.

@Fdawgs
Copy link
Contributor

Fdawgs commented Jul 30, 2024

Great @hchiam, I think this also needs your suggested fix from https://github.com/spencermountain/compromise/pull/1129/files#r1690519347

@spencermountain spencermountain merged commit b7088bc into spencermountain:master Jul 30, 2024
@spencermountain
Copy link
Owner

amazing!
I'll release both fixes if I can, tomorrow
thank you!

@hchiam
Copy link
Contributor Author

hchiam commented Jul 30, 2024

Great @hchiam, I think this also needs your suggested fix from https://github.com/spencermountain/compromise/pull/1129/files#r1690519347

i'll work on a quick pr to get this in hopefully before @spencermountain creates the next release

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.

add dmy option
3 participants