BhatiaVJ
BhatiaVJ

Reputation: 79

PHP Function 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.

Upvotes: 1

Views: 182

Answers (1)

Niet the Dark Absol
Niet the Dark Absol

Reputation: 324640

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

Upvotes: 1

Related Questions