Ezio Posted September 25, 2013 Share Posted September 25, 2013 Hey guys, I was wondering if there is a way by which i can insert the local date and time of a user anywhere around the world in my phpmyadmin using php..?? ...means suppose if a user logins from newyork, i save the local date and time of that user, and the same code would help me to save the local date and time of some other user logging from a different location, say london..How do i do that..?? Link to comment Share on other sites More sharing options...
birbal Posted September 25, 2013 Share Posted September 25, 2013 Use unix timestamp to store date time and use local timezone to output local time. Link to comment Share on other sites More sharing options...
justsomeguy Posted September 25, 2013 Share Posted September 25, 2013 If you want to get the user's local time without asking them for it then you need to use Javascript to get the local date and time and send that to the server via ajax or adding it to a form or something. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now