Skip to content

Revert "STRATCONN-4121 - [Customerio] - fix timestamp normalization occurring after isIsoDate gate" - #3934

Merged
joe-ayoub-segment merged 1 commit into
mainfrom
revert-3930-fix/customerio-timestamp-normalize-before-gate
Aug 10, 2026
Merged

Revert "STRATCONN-4121 - [Customerio] - fix timestamp normalization occurring after isIsoDate gate"#3934
joe-ayoub-segment merged 1 commit into
mainfrom
revert-3930-fix/customerio-timestamp-normalize-before-gate

Conversation

@joe-ayoub-segment

Copy link
Copy Markdown
Contributor

Reverts #3930

Copilot AI lite review requested due to automatic review settings August 10, 2026 14:43
@joe-ayoub-segment
joe-ayoub-segment requested a review from a team as a code owner August 10, 2026 14:43
@joe-ayoub-segment
joe-ayoub-segment merged commit 01a3166 into main Aug 10, 2026
21 of 22 checks passed
@joe-ayoub-segment
joe-ayoub-segment deleted the revert-3930-fix/customerio-timestamp-normalize-before-gate branch August 10, 2026 14:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Reverts the prior change that normalized ISO timestamp fractional seconds before parsing, restoring the earlier Customer.io timestamp handling behavior.

Changes:

  • Removed ISO fractional-second normalization helper and its usage in timestamp conversion logic.
  • Restored prior convertAttributeTimestamps behavior that gates conversion via isIsoDate(value) without pre-normalization.
  • Removed regression tests covering sub-millisecond ISO timestamps and convertAttributeTimestamps conversion behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
packages/destination-actions/src/destinations/customerio/utils.ts Removes fractional-second normalization and reverts parsing/gating behavior for timestamps.
packages/destination-actions/src/destinations/customerio/tests/utils.test.ts Deletes tests that asserted correct handling of sub-millisecond ISO timestamps and attribute timestamp conversion.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

}

const maybeDate = dayjs.utc(normalizeIsoFractionalSeconds(value))
const maybeDate = dayjs.utc(value)
Comment on lines +69 to +73
// Parse only ISO 8601 date formats in strict mode
const maybeDate = dayjs(value)

if (isIsoDate(value)) {
;(clone[key] as unknown) = maybeDate.unix()
@@ -1,4 +1,4 @@
import { convertAttributeTimestamps, convertValidTimestamp, resolveIdentifiers, isIsoDate } from '../utils'
import { convertValidTimestamp, resolveIdentifiers, isIsoDate } from '../utils'
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.

4 participants