Skip to content

Incorrect customer.birthday Date Format Sent to Klaviyo #11

@sascha-seyfert

Description

@sascha-seyfert

The customer.birthday field is not being correctly recognized as a date when sent to Klaviyo. Currently, the Shopware default variable:

$birthday ? $birthday->format(Defaults::STORAGE_DATE_FORMAT) : null
//is used, where STORAGE_DATE_FORMAT = 'Y-m-d';.

This causes the birthday property in Klaviyo to be improperly formatted or unrecognized as a valid date.

Expected Behavior:
The customer.birthday field should be sent to Klaviyo in a format that it recognizes as a valid date, ensuring proper functionality of the birthday property.

Steps to Reproduce:
Add a customer with a valid birthday in Shopware.
Sync data with Klaviyo.
Observe that the customer.birthday field is not recognized as a valid date in Klaviyo.

Suggested Fix:
Adjust the date formatting in the integration to ensure compatibility with Klaviyo's expected date format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions