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 reported difference in datetime when passed in a date in the future (addresses #44) #45

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jf
Copy link

@jf jf commented Nov 15, 2024

Addresses #44

I considered a couple of approaches, ranging from adding the current time (and then with a +1 second; good grief!) to then-dt using atTime, to maybe doing something with the cond if passed in a date; but ultimately settled on this one as the most elegant.

A couple of notes:

  • I must apologize for not adding in tests for this just yet; I can take a look at this in time to come (but would also be fine getting help for this) DONE
  • I decided to make (datetime (java.time.LocalDate/now)) equal "today" (rather than "a moment ago"); I think that makes sense

we do this by simply "coercing" the :now-dt argument to be ~at midnight
as well~ when then-dt is a java.time.LocalDate
@jf jf requested a review from hlship as a code owner November 15, 2024 23:06
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.

1 participant