GAM seems to be ignoring my timezone settings

202 views
Skip to first unread message

+KimNilsson

unread,
Oct 9, 2016, 2:05:43 PM10/9/16
to Google Apps Manager
Running a simple 'gam info user blabla' will give me a creation date with UTC/GMT time and not the local date and time. Like this:

Creation Time: 2016-10-08T06:05:58.000Z

I know the "real" creation time was 08:05 in local time, which I also know that the computer adheres to.
This makes it difficult to both use and compare data which is exported from other systems, or with other tools from G Suite.

Is there some setting I have forgotten to set in Python?¨
Regular time control displays the correct time.

$ date
Sun Oct  9 20:03:48 CEST 2016

TZ is Europe/Stockholm which is UTC+1, which makes it +2 during daylight saving.

Ross Scroggs

unread,
Oct 9, 2016, 4:42:33 PM10/9/16
to google-ap...@googlegroups.com
Kim,


creationTimedatetimeThe time the user's account was created. The value is in ISO 8601 date and time format. The time is the complete date plus hours, minutes, and seconds in the form YYYY-MM-DDThh:mm:ssTZD. For example, 2010-04-05T17:30:04+01:00.
Here's what comes back from the API: u'creationTime': u'2015-06-29T19:52:28.000Z'
I always see the value in UTC. To get local time, the returned string would have to be converted to a datetime object, and reconverted to a string in your local timezone.

Ross

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/0ee6b9d3-0acd-44e5-99a7-272fe8452969%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kim Nilsson

unread,
Oct 18, 2016, 11:07:13 AM10/18/16
to google-ap...@googlegroups.com
This never reached the thread, because of wrong send-from address.

On 10 October 2016 at 10:20, Kim Nilsson <Kim.N...@no-substitute.com> wrote:
Yeah, so it's not happening.
Shame, since exports from for example GAT shows the local time, with the TZ info.
ex 2016-01-18T09:58:35.000+0100
09.58 is the real local time, which then was UTC+1.
From GAM: Creation Time: 2016-01-18T08:58:35.000Z

As long as I don't mix the data I'm fine.

Reply all
Reply to author
Forward
0 new messages