ylecuyer / survey-gizmo-ruby

Gem to use the Survey Gizmo API
MIT License
23 stars 26 forks source link

The timezone is UTC for europe for datesubmitted #102

Open GCorbel opened 5 years ago

GCorbel commented 5 years ago

I reached the support team of SurveyGizmo and they said "Timestamps returned in the API are in GMT for all EU accounts. If you use v5 of our API, the time zone is actually included in the data to avoid this confusion." I didn't saw anything on the documentation about that. I'm in contact with their team to update the doc.

I suppose we have to change this line and consider to work on https://github.com/jarthod/survey-gizmo-ruby/issues/100 .

jarthod commented 5 years ago

If it's really the case for EU servers we need to change this line because initially it was UTC+1. But I doubt it is otherwise all customers would complain, do you confirm what they say?

GCorbel commented 5 years ago

I asked for a link on the documentation to be sure. I will keep you up to date.

GCorbel commented 5 years ago

Here is the answer of the person of the support team :

Thanks for getting back to me! Thanks for sharing that Ruby gem with me--I actually haven't seen that before! Regrettably, I can't seem to find this documented. I just put in a request to our documentation team. I will keep this case open and when they notify me either that I was looking in the wrong place or that they added it to the page I suggested, I will be sure to let you know.

So we just have to wait for their confirmation.

GCorbel commented 5 years ago

The documentation has been updated : https://apihelp.surveygizmo.com/help/us-eu-or-ca-api :

If you see app.surveygizmo.eu your account is an EU account. Note that EU accounts use the GMT Timezone.

jarthod commented 5 years ago

Ok cool, do you confirm this is what we receive on ALL surveys and that ALL values are currently wrong?

GCorbel commented 5 years ago

I checked and all surveys I saw has the same issue and has been confirmed by our team.

I created this PR : https://github.com/jarthod/survey-gizmo-ruby/pull/103/files .

jarthod commented 5 years ago

Great, thanks :)