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

Add time to parsed date after parsing not before #117

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

jfinkels
Copy link
Contributor

Change the way dates without times are parsed by just parsing the date as-is and applying the placeholder time (00:00:00) after parsing instead of before. The previous implementation would fail to support parsing strings like "1776-07-04 +250 years".

@sylvestre sylvestre force-pushed the add-time-to-date-after-parsing branch from 3b74161 to 6b41515 Compare February 13, 2025 06:55
Change the way dates without times are parsed by just parsing the date
as-is and applying the placeholder time (00:00:00) after parsing
instead of before.
@jfinkels jfinkels force-pushed the add-time-to-date-after-parsing branch from 6b41515 to db18db4 Compare February 13, 2025 23:48
@jfinkels
Copy link
Contributor Author

I rebased this on main and commented out one test case that I added in pull request #118. It was passing before, but for the wrong reasons. It can be re-enabled when issue #104 is resolved.

@cakebaker cakebaker merged commit ca6a39c into uutils:main Feb 14, 2025
14 checks passed
@cakebaker
Copy link
Collaborator

Thanks!

Copy link

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (c337aba) to head (db18db4).
Report is 2 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff     @@
##   main   #117   +/-   ##
===========================
===========================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

None yet

2 participants