Project

General

Profile

REST API incorrect timezone

Added by Ivan Petrov about 3 years ago

Hi, using REST service i get wrong fields values:

"created_on": "2021-10-19T04:09:52Z",
"updated_on": "2021-10-22T03:52:43Z",
"closed_on": "2021-10-22T03:52:43Z"

How can i set up correct timezone? Redmine version is 4.2.3. System timezone is set up correctly. Redmine interface show correct time too. The problem is only using Redmine api.


Replies (1)

RE: REST API incorrect timezone - Added by Go MAEDA about 3 years ago

API always returns time in UTC. This is the expected behavior. Your application has to convert the time to local time if necessary.

    (1-1/1)