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

[source-xero] ParseDates.convert_dates - fix for datetime truncation #51009

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

absorbb
Copy link

@absorbb absorbb commented Jan 9, 2025

Fixes #51007

What

The condition if isinstance(parsed_value, date) is always true even for datetime instances ( Reproducible Example )

So it always replaces time part of all datetime instances with 00:00:00

How

Replaced isinstance with the exact type checking

User Impact

UpdatedDateUTC field of all entities will finally have time part

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

@CLAassistant
Copy link

CLAassistant commented Jan 9, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

vercel bot commented Jan 9, 2025

@absorbb is attempting to deploy a commit to the Airbyte Growth Team on Vercel.

A member of the Team first needs to authorize it.

@marcosmarxm
Copy link
Member

Hello @absorbb can you create a branch in your fork and submit a new contribution. Pushing the master branch directly breaks Airbyte CI pipeline to validate your changes.

@absorbb
Copy link
Author

absorbb commented Jan 10, 2025

@marcosmarxm Done: #51034

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[source-xero] Xero source truncates time part from all date-time values
4 participants