Answer the question
In order to leave comments, you need to log in
How to convert the correct timestamp from vk?
Hello, I ran into such a problem as invalid timestamps for VK, i.e. it gives this (picture below)
but if you enter this timestamp(1540574997) into the Date object, then this is what happens ...
Maybe someone has an idea how vk converts this timstamp to a valid one ...
Answer the question
In order to leave comments, you need to log in
this is a PHP timestamp, just multiply it by 1000.
https://jsfiddle.net/qhj36uoL/
Maybe someone has an idea how vk converts this timstamp to validThis is actually the number of seconds between 01/01/1970 00:00 and today's date/time. And you need to multiply by 1000 if you need milliseconds ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question