diff --git a/sdk/core/src/main/java/com/klaviyo/core/config/SystemClock.kt b/sdk/core/src/main/java/com/klaviyo/core/config/SystemClock.kt index ff2d8fecd..855ffb9c7 100644 --- a/sdk/core/src/main/java/com/klaviyo/core/config/SystemClock.kt +++ b/sdk/core/src/main/java/com/klaviyo/core/config/SystemClock.kt @@ -3,14 +3,16 @@ package com.klaviyo.core.config import android.annotation.SuppressLint import java.text.SimpleDateFormat import java.util.Date +import java.util.Locale import java.util.TimeZone import java.util.Timer import kotlin.concurrent.schedule internal object SystemClock : Clock { + // Explicitly set Locale.ENGLISH to ensure consistent formatting @SuppressLint("SimpleDateFormat") - private val format = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").apply { + private val format = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ", Locale.ENGLISH).apply { timeZone = TimeZone.getTimeZone("UTC") }