![]() |
Time/Clock/Seasons
I think it would be really cool to have a time zone feature, like game time. It could also have seasons and hopefully wouldn't be that hard to do. Thoughts?
|
That would be amazing to have. Just sayin'.
|
It would have to include javascript, i would think.
but a nice idea. :happycbig: |
Sounds kinda interesting. What would the seasons do? Differnet adopts available?
|
Nothing, just for show XD
|
umm a timezone feature? I have two ideas how this can be done.
1. Upgrade your PHP to version 5.3.0+. In PHP 5.3.0+, there are lots of new date/time functions that were previously unavailable in PHP 5.2.x or earlier versions. Not sure if it will help with timezone, but its worth trying. However, most shared host do not allow PHP upgrade, so... 2. Use cronjobs. |
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. |
Good point Kaeliah, I wonder if the date/time functions in old PHP versions actually can check timezone. But yeah, it wont hurt to try.
|
you could do localtime() which is PHP 4 & 5.
|
Okay... now I'm confuzzled XD
|
All times are GMT -5. The time now is 06:55 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.