douke3442 2010-11-25 11:22
浏览 14

PHP函数Strtotime

I am passing a date in "Y-m-d H:i" format to strtotime and it is returning 5hours 30 minutes less in result.

  • 写回答

1条回答 默认 最新

  • dongyan7851 2010-11-25 11:25
    关注

    Make sure you set the timezone correctly. You can use date_default_timezone_set() to set it to what you want.

    评论

报告相同问题?