DateTime->format(epoch) returning the wrong date

前端 未结 4 1975
春和景丽
春和景丽 2021-01-22 04:55

I am working on a project and I am having an issue formatting an epoch time to a human readable time.

I have the following epoch time 1428512160 and when I

4条回答
  •  遥遥无期
    2021-01-22 05:32

    Printing date and time is correct. Its based on what GMT you have set in your PHP. If you printing with GMT you will get required result.

提交回复
热议问题