Skip to content

Commit

Permalink
send millisecond precision timestamps (#146)
Browse files Browse the repository at this point in the history
* send millisecond precision timestamps

* update MixpanelUnityVersion and CHANGELOG

* use TotalMilliseconds
  • Loading branch information
jaredmixpanel committed Aug 4, 2022
1 parent 62fe9cf commit 8821427
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#

## [v3.3.0](https://github.com/mixpanel/mixpanel-unity/tree/v3.3.0) (2022-08-02)

### Enhancements

- Send millisecond precision timestamps with events and people updates [\#146](https://github.com/mixpanel/mixpanel-unity/pull/146)

#

## [v3.2.0](https://github.com/mixpanel/mixpanel-unity/tree/v3.2.0) (2022-04-30)

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion Mixpanel/MixpanelAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace mixpanel
/// </code>
public static partial class Mixpanel
{
internal const string MixpanelUnityVersion = "3.2.0";
internal const string MixpanelUnityVersion = "3.3.0";

/// <summary>
/// Creates an Mixpanel instance. Use only if you have enabled "Manual Initialization" from your Project Settings.
Expand Down
2 changes: 1 addition & 1 deletion Mixpanel/Worker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ internal static class Util
internal static double CurrentTime()
{
DateTime epochStart = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
double currentEpochTime = (DateTime.UtcNow - epochStart).TotalSeconds;
long currentEpochTime = (long)(DateTime.UtcNow - epochStart).TotalMilliseconds;
return currentEpochTime;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.mixpanel.unity",
"displayName": "Mixpanel",
"version": "3.2.0",
"version": "3.3.0",
"description": "Official Mixpanel library for Unity.",
"repository": {
"type": "git",
Expand Down

0 comments on commit 8821427

Please sign in to comment.