date_default_timezone_get()
Hello, Everyone:
Is there a way that I can place a date timezone according the user's machine?
Right now a client has their website hosted on a CST. Is there a way that when a datetime stamp gets logged into a database it shows according the user's timezone rather than the timezone of the hosted server.
Right now in the users page they are able to see when they last logged in. However, it records the CST when actually the user is in EST. I hope I am making sense in all this.
I just want to put a script such as "date_default_timezone_get()" if it is the right script to the top of all my pages that when ever a datetime stamp gets recorded in a database that it records as the users timezone rather than the hosted server. Is this possible or is this wrong looking at it? Or the timezone is set in the MySQL, if so, how?
Thanks everyone.
