I found one topic, that claimed it’s possible to get it through REST API like so
https://api.trello.com/1/members/${member}?key=${appKey}&token=${apiToken}
And the documentation agrees
https://developer.atlassian.com/cloud/trello/rest/api-group-members/#api-members-id-get
But my results disagree and I am not sure why. My “prefs” look like this
prefs: {
sendSummaries: true,
minutesBetweenSummaries: 60,
minutesBeforeDeadlineToNotify: 60,
colorBlind: false,
locale: 'en-US',
privacy: { fullName: 'public', avatar: 'public' }
}
Am I doing this right? Is there a different way?
My original issue is that I am trying to set the due datetime for a card and the REST endpoint treats the due datetime as if it was UTC, I believe.
Hello @JanGebauer and welcome to the Developer’s forum.
The documentation seem to be wrong on that topic.
By default, a user’s time zone information is stored in their Atlassian account, not in Trello, Even if you use the Get field on a Member endpoint and query the prefs field directly, it still doesn’t return the or timezone
object or the timezoneInfo
group of objects that the documentation claims should be contained in that field.
However, those objects might possibly be returned for managed user accounts if the Trello instance is on an Enterprise license and the company has linked it to their Organization. I don’t have access to a Trello instance of that type at the moment, so can’t test that theory.
If you’re able to test against such a Trello instance and find that the time zone information is still not being returned as the REST API documentation says it should, I’d suggest you assume it’s documentation errata and that you log it as a Trello BUG.