Update:
Here's how you can set the time zone for your region:
if (function_exists('date_default_timezone_set')) { date_default_timezone_set('Asia/Mumbai'); }
It should work fine. Also note that you did not specify the minutes correctly. Use i for minutes not m :
date('Ymd hi-s')
And make sure echo it:
echo date('Ymd hi-s');
source share