Skip to content

API returning incorrect times (e.g., created, updated) #3686

@jscher2000

Description

@jscher2000

I have a "My Questions" tool (https://github.com/jscher2000/My-SuMo-Questions) that retrieves the following URL (of course, you would supply your own SuMo username):

https://support.mozilla.org/api/2/question/?format=json&ordering=-updated&is_spam=False&involved=jscher2000&page=1

The feed provides UTC date-time values such as:

"updated": "2019-05-27T08:17:11Z"

However, at some point between May 17 and May 24 the time stamps started returning Pacific time instead of UTC. The above thread was updated at 8:17am Pacific Daylight Savings time, so the correct UTC time should have been 7 hours later.

There is a similar problem with "created" and "updated" values in:

https://support.mozilla.org/api/2/answer/?format=json&question=1260189&is_spam=False&ordering=id

Other properties might also be affected.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions