Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add utc method to timestamp #122

Merged
merged 1 commit into from
Nov 6, 2024
Merged

Add utc method to timestamp #122

merged 1 commit into from
Nov 6, 2024

Conversation

niallzato
Copy link
Contributor

Follow up on this PR. https://github.com/segmentio/analytics_flutter/pull/105/files

We also need to set the timestamp to UTC as per our docs: https://segment.com/docs/connections/spec/common/#timestamps

Every API call has four timestamps, originalTimestamp, timestamp, sentAt, and receivedAt. They’re used for very different purposes.

All timestamps are ISO-8601 date strings, and are in the UTC timezone. To see the user’s timezone information, check the timezone field that’s automatically collected by client-side libraries.

@MichaelGHSeg MichaelGHSeg merged commit 2208590 into main Nov 6, 2024
5 checks passed
@MichaelGHSeg MichaelGHSeg deleted the niall/timestamp_utc branch November 6, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants