Timezone question

Hi guys,

please, how do you handle zimezones? When I post time, for example in resource_logs with current time like this:
“member”: xx,
“createdAt”: “2022-01-17T11:34:00Z”,
“stoppedAt”: “2022-01-17T11:34:00Z”,
“idleDurationSeconds”: 0,
“notes”: “”,
“metadata”: {}

the response is one hour shifted from current time
“resource”: xx,
“member”: xx,
"createdAt": “2022-01-17T11:34:00.000Z”,
** “stoppedAt”: “2022-01-17T11:34:00.000Z”,**
** “updatedAt”: “2022-01-17T10:42:10.755Z”,**
“idleDurationSeconds”: 0,
“notes”: “test vaco api”,
“metadata”: {},
“account”: 294,
“type”: “allowed”,
“stopType”: “normal”,
“updatedBy”: 14578,
“lockVersion”: 1,
“id”: 1077177

how do you handle local time zone?
thanks for reply

Hey @Vaco,

I’m not sure what you mean by " the response is one hour shifted from current time". Both times in the example you posted are at T11:34:00Z.

Times in the resource log are always UTC times (that’s what the suffix “Z” means). So you need to adjust that timestamp for whatever your current time zone is. (For example, if you’re at UTC+1, you need to add one hour).

The Fabman app automatically displays all log times in the time zone of your browser. So you might see that time in the admin app as “Today at 10:34” if you’re currently at UTC-1.