From 22085907319c28a43d2650a86cabcbe6df126af7 Mon Sep 17 00:00:00 2001 From: Niall Brennan Date: Wed, 6 Nov 2024 15:36:38 +0000 Subject: [PATCH] add utc method to timestamp (#122) --- packages/core/lib/event.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/lib/event.dart b/packages/core/lib/event.dart index 63b8973..50f7ba3 100644 --- a/packages/core/lib/event.dart +++ b/packages/core/lib/event.dart @@ -577,7 +577,7 @@ mixin JSONExtendable { void applyRawEventData(RawEvent event) { event.messageId ??= const Uuid().v4(); - event.timestamp ??= DateTime.now().toIso8601String(); + event.timestamp ??= DateTime.now().toUtc().toIso8601String(); } UserTraits mergeUserTraits(UserTraits a, UserTraits b) {