I recently wrote an api and I haven't found any problems during the test. However, after going online, you may find that the api returns incorrect results. Why? The caller gave two call examples. Theoretically, the two results should be consistent, but the actual results are inconsistent. The api call includes a timestamp parameter date. By converting a date to a time format, I find that
I recently wrote an api and I haven't found any problems during the test. However, after going online, you may find that the api returns incorrect results. Why? The caller gave two call examples. Theoretically, the two results should be consistent, but the actual results are inconsistent. The api call includes a timestamp parameter date. By converting a date to a time format, I find that
I recently wrote an api and I haven't found any problems during the test. However, after going online, you may find that the api returns incorrect results. Why?
The caller gave two call examples. Theoretically, the two results should be consistent, but the actual results are inconsistent.
The api call includes a timestamp parameter date. By converting the date to the time format, I found that the date is different from the original time after it is converted into time, which leads to an error.
I told the contact that your parameter is incorrect.
But that guy insisted that he was correct, and the time zone was the same. I'm a best friend.
It is mainly because you are too confident in yourself and are not aware of the error when the timestamp is converted to time.
I turned it like this.
$ Date = date ("Y-m-d h: I: s", $ date );
Memory in this format is YYYY-MM-DD HH: II: SS, in fact not, h is a 12-hour system.
This is correct.
$ Date = date ("Y-m-d H: I: s", $ date );
Sorry !!!!