Answer the question
In order to leave comments, you need to log in
What's wrong with timestamp?
A little before the story: I
changed crontab so that the script was run not through wget, but through /usr/bin/php and then a problem came up:
In the script that runs, there is this line:
CURLOPT_URL => "https://urladdress.com×tamp=" . round((microtime(true) * 1000) - (60*60*3/1000)) . "",
Answer the question
In order to leave comments, you need to log in
in one case, the timestamp is in seconds
, in the other - in milliseconds
, that is, you need to multiply / divide by 1000
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question