Skip to content

Use unix timestamp in meta endpoint#1440

Merged
Naramsim merged 2 commits intomasterfrom
unix-ts
Mar 13, 2026
Merged

Use unix timestamp in meta endpoint#1440
Naramsim merged 2 commits intomasterfrom
unix-ts

Conversation

@Naramsim
Copy link
Member

Currently the meta endpoint exposes a deploy date in the ISO 8601 format, apparently this format (interpreted by git) gives a different date format depending on the timezone, if the timezone is +0 the date is 2026-03-13T10:51:29Z while in a +1 timezone the output date is 2026-03-13T12:14:51+01:00. These dates lenght different and tests fail.

It's better to use the Unix timestamp since our API is primarily machine-readable. And we don't care about the timezone.

@Naramsim Naramsim requested review from jemarq04 and phalt March 13, 2026 11:38
Copy link
Contributor

@jemarq04 jemarq04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I hadn't noticed that with the timezone! Good catch!

@Naramsim
Copy link
Member Author

Yeah, I noticed that the timezone changes between PR and push jobs in CircleCI. That's crazy :)

@Naramsim Naramsim merged commit 905e74b into master Mar 13, 2026
9 checks passed
@PokeAPI PokeAPI deleted a comment from pokeapi-machine-user Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants