jeudi 14 juillet 2016

Get User's Date & Time in User' TimeZone

I need the current Date Time from where the user of my website filling a . The Date-Time should be user's Time Zone I need to get the DateTime without setting the TimeZone

When I use

date("Y-m-d H:i:s")

It only returns DateTime in IST. whether user is from India,USA or UK.

I need the current Date-Time from the User's TimeZone.

I need to insert the value to datetime field in MySql

I did't ask for user timezone , rather I need the date and time from user's time zone

Aucun commentaire:

Enregistrer un commentaire