I am building a project management website which enables users from around the world to login and automatically register their time against various work projects. I need to save their login time to the database using their "local machine" time (the time as it exists for them, not the time of the website host server), and also their timezone information - so that I can determine where and what time in the world each user is logging in from.
I am already familiar with writing PHP code to save records to the database, but what I need to know is... is there a timezone/datetime function or process in PHP to determine the user's local time and timezone?