How to decode value of limited time booster from ESI

Hello
I’ve spend some time on this and i really have no idea how to convert value of “Expiry Date” of Limited Time [19] Booster
I tried to do in on example “Extended Capsuleer Day XX Cerebral Accelerator”
https://esi.evetech.net/latest/universe/types/76507/?datasource=tranquility&language=en
which dogma_attribute 2422 is: 19549.45763888889
Unit_id is 143 which is
“description”: “Date and time”,
“name”: “Datetime”
but when i tring to convert this wiht php i get 1970-01-01 05:25:49 but it should be 2023-07-11 00:00:00

Nice puzzle. I couldn’t find any documentation about it, but after trying some things, that value looks like ‘amount of days since 1st of Jan 1970’ to me.

Not the regular unix timestamp, which would use seconds since that day, but days. If you take the value as 19549 days since 1970-01-01, you get an expiry date of 11th of July 2023, which corresponds to the value in the description:

image

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.