![]() |
formatting time outside of vb based on offset
I want to make a new page which shows news, .. however I would like to format the time from my queries based on the offset the users put in their profile.
take this code for example: PHP Code:
my time field is stored as a datetime type, .. i can change it to integer14 and store the unix timestamp if that is necessary. thanks |
Here's what I did for my users online today part of forumhome and it seems to work great for each user's time offset.
PHP Code:
PHP Code:
|
thanks a lot boofoo =) your help is much appreciated!
|
err wait, .. that does help me figure out how to display the user's current time .. and query against that, .. but when i display my news, it will always display the same news articles. there will be no 'where' clause.
when i loop through the news, i need to display the time as the user's current time. .. heh and as i think about it, would i do something like this? PHP Code:
|
=/ now that i tried it, i can't figure out where vbmktime() is located.
i'm including global.php, do i need to include something else for that function? |
I'm sorry, I forgot to add this:
PHP Code:
|
All times are GMT. The time now is 02:11 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|