I am wanting to code a WP plugin myself using php that will display a different picture depending on the time of day of a visitor. What would be the most efficient way to determine the time of the user?
1. Translate user's IP address to user's location 2. Get the time difference between that location and the web server 3. Add / subtract server's current time with the difference Note though that you still can't get 100% accuracy in translating IP address to location. Check maxmind.com for a sample solution (or search for 'ip to location' with your preferred search engine).
You will probably want to use Javascript because it's a client-side language to pull the client's date/time, and then feed that into your PHP script.