Skip to content

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!

@codecov
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.

2 participants