Where to find documentation on how to set GMT in the date class

Avatar

Avatar

RasmusFriis

Avatar

RasmusFriis

RasmusFriis

15-10-2015

Hello.....

Could somebody please help me finding some kind of documentation on this.

I use the Adobe analytics Developer Api source code in klipfolio, but somehow the date is

chancing on the wrong time, so I was wondering if I could set the date to use GMT+2, cant find any documentation....

Here is the code:
    "reportDescription":{
        "reportSuiteID":"**********",
        "date":"{date.today}",
        "dateFrom":"{date.today}",
        "dateTo":"{date.today}",
        "dateGranularity":"day",
        "metrics":[
            {
                "id":"orders"
            }
        ]
    },
    "currentdata":true
}

Please Help me, Rasmus

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Gigazelle

Employee

Total Posts

1.9K

Likes

460

Correct Answer

734

Avatar

Gigazelle

Employee

Total Posts

1.9K

Likes

460

Correct Answer

734
Gigazelle
Employee

15-10-2015

Hi Rasmus,

Everything we have on the reporting API can be found here: https://marketing.adobe.com/developer/documentation/analytics-reporting-1-4/get-started - I don't see anything wrong with the request, so you're good on that front.

Chances are the time zone for the report suite in question needs to be changed. You can do this inside the Analytics web interface, or use the Analytics Admin API. The relevant page you're looking for is here: https://marketing.adobe.com/developer/documentation/analytics-administration-1-4/r-savetimezone-1 

Answers (2)

Answers (2)

Avatar

Avatar

RasmusFriis

Avatar

RasmusFriis

RasmusFriis

15-10-2015

Thanks for your answer TanmayM,

I have already checked my report suite configuration, and it is in fact correctly set.

I cant use XML tags in Klipfolio, we request for a report by using the code I showed in my question, We request for the report every 15 minutes, but the first report from Adobe is received after 02:00AM, so somewhere the timezone is being wrong set.

Can you show me how to set the timezone by using the API.

Thanks in advance

Rasmus Friis

Avatar

Avatar

TanmayMathur

Employee

Total Posts

1.2K

Likes

241

Correct Answer

421

Avatar

TanmayMathur

Employee

Total Posts

1.2K

Likes

241

Correct Answer

421
TanmayMathur
Employee

15-10-2015

Hi,

If you want timestamp hits, you can use the timestamp parameter, you will find that here - https://marketing.adobe.com/developer/documentation/data-insertion/r-supported-tags. You would have to use timestamp on every single image request else it will not show up. 

Also, you may want to ensure that the time zone for your report suite is correctly configured. You will find the details on this page - https://marketing.adobe.com/resources/help/en_US/reference/general_acct_settings_admin.html

TM