Skip to content

Memeber cannot be synced because TimestampSignup is not set in ISO 8601 format.  #11

@marchrainwu

Description

@marchrainwu

In MailChimpManager.cs -> CreateMemberBySubscription, the
TimestampSignup is not set in ISO 8601 format, which causes the member cannot be synced to Mailchimp.
var member = new mailchimp.Member
{
EmailAddress = subscription.Email,
TimestampSignup = subscription.CreatedOnUtc.ToString("s")
};

To fix the issue, I manually format the timestamp with "yyyy-MM-ddTHH:mm:ssZ"

var member = new mailchimp.Member
{
EmailAddress = subscription.Email,
// TimestampSignup = subscription.CreatedOnUtc.ToString("s")
TimestampSignup = subscription.CreatedOnUtc.ToString("yyyy-MM-ddTHH:mm:ssZ")
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions