Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Suggestions and Feature Requests (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=21)
-   -   Time/Clock/Seasons (http://www.mysidiaadoptables.com/forum/showthread.php?t=2151)

Cindykt 05-10-2011 08:12 AM

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?

Rozel 05-10-2011 10:29 AM

That would be amazing to have. Just sayin'.

rickasawr 05-10-2011 04:41 PM

It would have to include javascript, i would think.
but a nice idea. :happycbig:

Nemesis 05-11-2011 12:34 AM

Sounds kinda interesting. What would the seasons do? Differnet adopts available?

Cindykt 05-11-2011 12:40 AM

Nothing, just for show XD

Hall of Famer 05-11-2011 08:30 PM

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.

Kaeliah 05-12-2011 12:06 PM

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.

Hall of Famer 05-12-2011 12:35 PM

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.

Kaeliah 05-12-2011 12:55 PM

you could do localtime() which is PHP 4 & 5.

Cindykt 05-16-2011 03:10 AM

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.