In php, I used date function (eg: date('Y-m-d h-m-s')
) it won’t displaying current time Please help me…
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
This should work. You can see your timezone at http://www.worldtimezone.com.
Update:
Here is how you can set time zone for your region:
It should work fine. Note also that you have not specified minutes correctly. Use
i
for minutes notm
:And make sure to
echo
it:change your timezone according to ur need and then try
You want indian time.Here is my solution. You can use either
Asia/Calcutta
orAsia/Kolkata
. both will return same time.It worked for me.Try...