Skip to content

Conversation

@ArnyminerZ
Copy link
Member

@ArnyminerZ ArnyminerZ self-assigned this Nov 6, 2025
@ArnyminerZ ArnyminerZ requested a review from a team as a code owner November 6, 2025 12:25
@ArnyminerZ ArnyminerZ added the bug Something isn't working label Nov 6, 2025
@ArnyminerZ ArnyminerZ linked an issue Nov 6, 2025 that may be closed by this pull request
Signed-off-by: Arnau Mora <[email protected]>
Signed-off-by: Arnau Mora <[email protected]>
Signed-off-by: Arnau Mora <[email protected]>
Copy link
Member

@rfc2822 rfc2822 left a comment

Choose a reason for hiding this comment

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

See #135 (comment)

The "parse and catch exception" approach doesn't seem to be a proper solution, at least not in the handle().

I think we should define a separate parseStartDate() method that

  • has well-defined inputs and outputs,
  • supports the required input formats,
  • is tested separately.

Within that method, we should use other methods to determine the input format. If that's really not possible, we can still use the exception method.

Comment on lines 38 to 40
// Some server providers (e.g. t-mobile) include time information
// This is allowed by RFC2426: https://www.rfc-editor.org/rfc/rfc2426#section-3.1.5
// And RFC6350: https://www.rfc-editor.org/rfc/rfc6350#section-6.2.5
Copy link
Member

Choose a reason for hiding this comment

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

This code is not related to vCard, as it only handles the field of the local contacts provider. So RFCs about vCard don't apply.

Copy link
Member

Choose a reason for hiding this comment

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

Besides from empty, I think we should test at least

  • the four formats of the AOSP Contacts app (see issue),
  • possibly additional common date / date-time formats that we want to support.

Signed-off-by: Arnau Mora <[email protected]>
@ArnyminerZ ArnyminerZ marked this pull request as draft November 10, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EventHandler doesn't handle start date with time

2 participants