title: Getting the time difference between a user and server time?
body: <p>I want to have a feature where the user can set that he wants some daily reports to be sent to him every day at H:mm AM/PM his time.</p>
  
  <p>I must then determine what time it will be on the server when its the specified time for the user. E.g if the user put 5:00 PM as the time when he wants emails to be sent, and its currently 12:00 PM for him while on the server its currently 10:00 PM, I want to determine what time it will be on the server when its 5:00 PM for the user.</p>
  
  <p>How can I achieve this using PHP / Javascript?</p>
  
  <p>I was thinking of generating a MySQL TIME string (e.g hh:mm:ss) via javascript, of the current user's time, passing it to the server, which would use this string in a mysql query and do TimeDiff() on it? Or is there any better method?</p>
  
  <p>Note: The client has specified that the user's clock time must be used, and not his current timezone. </p>