This actually could be done WITHOUT cronjobs, and WITHOUT upgrading PHP and WITHOUt Javascript.
You'd need some sort of array or switch statement, then the user identifies what timezone their in. Depending on the difference in time zone from the default you'd add or subtract hours and output their current time whenever a page loads.
The only risk when doing a feature that includes this is if someone wants a pet only available at night, then can simply change their timezone and the code will register night time and that pet will be available.
|