I am working on a project where I need to be able to get GMT time using Jquery and post it into a MYSQL DB through PHP. Then I need to get the local time factor of the user and save it into the db. After that using JS/JQuery convert GMT to the users local time. I was hoping someone could give me a code example if possible. I really appreciate you time, thanks!
Share
Without having the user manualy select their timezone, one approach is to use the javascript date object to collect infomration about the users local time, and use it in a subsequent request
I’m in Australia at +10 GMT, and the value returned by getTimezoneOffset is -600 minutes