Question

How do I change eventTime parameter that sent from RevenueCat to AppsFlyer change to UTC?

  • 10 March 2022
  • 2 replies
  • 178 views

Badge +1

We send purchase process in RevenueCat to AppsFlyer by integration.

AppsFlyer receive the following abbreviated JSON data.

{
“appsflyer_id”: “12345678",
“customer_user_id”: “ABCDEFGH",
“eventName”: “trial_converted_event”,
“eventValue”:
“{\“af_revenue\“: \“10.00\“, \“renewal\“: \“true\“,   \“af_currency\“: \“USD\“}”,

“af_events_api”: “true”,

“eventCurrency”: “USD”,

// It’s JST time.

“eventTime”: “2022-03-09 10:43:01.000”,

…………
}

 

Our timezone is JST, so eventTime parameter is currently in JST.

But We somehow want to set eventTime to UTC and send it to AppsFlyer.

Please let me know if you can shed any light on this.


2 replies

Userlevel 3
Badge +8

Hi @chii,

It should be in UTC - we use UTC for all of our timestamps and we try to base this information off the receipt (for example what the receipt considers the purchase date for the subscription) - can you share how you’re determining that it’s JST time?

Badge +1

@sundeep

Thank you very much for your reply.

And I ‘m  very sorry for the very late reply…

If eventTime is in UTC, there is unnatural data.

The following eventTime data is “2022-03-09 10:43:01.000” and in UTC.

  • notification1

{ “appsflyer_id”: “12345678", “customer_user_id”: “ABCDEFGH", “eventName”: “trial_converted_event”, “eventValue”: “{\“af_revenue\“: \“10.00\“, \“renewal\“: \“true\“,   \“af_currency\“: \“USD\“}”, “af_events_api”: “true”, “eventCurrency”: “USD”, // It’s JST time. “eventTime”: “2022-03-09 10:43:01.000”, ………… }’

But we received the following slack notification.

  • notification2

2022-03-09 11:43(The time of this notification is always JST) 😺: Customer ABCDEFGH just converted from a free trial.

If eventTime is “2022-03-09 10:43:01.000” in UTC, notification1 and notification2 are not consistent.

 

Please let me know if there is anything I'm not explaining.

 

 

 

 

Reply