Difference between server time and user's time

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kabuki1985
Forum Commoner
Posts: 32
Joined: Thu Jun 15, 2006 10:19 pm

Difference between server time and user's time

Post by kabuki1985 »

I am creating a calendaring application and an alert feature using email ( maybe SMS later ). Lets say the user expects an alert at a time on their system, but their time is different than the server time maybe by only a few minutes, how can i synchronize the time of the saved event by the user and the time the server is supposed to send out a reminder?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

You could display the server time and let the user input the time (not just "in 5 minutes", but "at 8:35").
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Use some javascript to update a hidden field with the time on the users local system.
Post Reply