Epoch not converting to Date properly

Hi all,

Anyone any good with Epoch date conversions?
We’re feeding in data via a webhook in to Mautic, but it doesn’t seem to convert properly from number to date.
for example:
Epoch Number = 1645045290144
Correct Date = 17/02/22
Number Display = 1645045290144
Date Display = March 30, 1645 12:54 pm
If it was a day out, I wouldn’t be too stressed, but I’m pretty sure we didn’t have customers on our site 377 years ago… :man-facepalming:
any ideas?..

PHP does not have microseconds in the timestamp, so the proper timestamp is 1645045290

1 Like