Skip to content

Commit

Permalink
add utc method to timestamp (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
niallzato authored Nov 6, 2024
1 parent 0e14c4c commit 2208590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/lib/event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2208590

Please sign in to comment.