You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The auto tracking fills both keen.timestamp keen.local_time_full with the same, UTC value by using new Date().toISOString() which always produces a UTC time.
It appears that the local_time_full is redundant since its storing the same UTC time as the keen.timestamp. Not sure if this is an error, or if there is some other reason unbeknownst to me why this property exists.
I'm setting up our initial event tracking now and want to follow best practices. While we aren't directly using the auto tracking, I am using it as a model for our events. Generally is it best practice to track and rely on UTC time for events? I would suspect so, but wanted to bring what I found to your attention.
The text was updated successfully, but these errors were encountered:
Hi @todda00
Thank you for feedback! You're right - the local_time_full property is deprecated, because the same UTC value is duplicated inside the keen.timestamp. We'll remove it in the next major version to avoid any confusion in the future.
The auto tracking fills both keen.timestamp keen.local_time_full with the same, UTC value by using
new Date().toISOString()
which always produces a UTC time.https://github.com/keen/keen-tracking.js/blob/master/lib/browser-auto-tracking.js#L122
It appears that the local_time_full is redundant since its storing the same UTC time as the keen.timestamp. Not sure if this is an error, or if there is some other reason unbeknownst to me why this property exists.
I'm setting up our initial event tracking now and want to follow best practices. While we aren't directly using the auto tracking, I am using it as a model for our events. Generally is it best practice to track and rely on UTC time for events? I would suspect so, but wanted to bring what I found to your attention.
The text was updated successfully, but these errors were encountered: