![]() |
vB3.5 Local time and date in post and profile
vB3.5 Local time and date in post and profile
Version 1.0.1 (By Boofo) What does this product do? This product will add the local time and date of users in the posts and profile. That way you will know what the time and date is where they are located. I use this on my site so I will have an idea if it is the middle of the night, where they are at, or daytime. With your users living in all corners of the globe, this hack is a nice gauge of the different time zones without having to figure out each one in your head. ;) Credits: Thanks goes out to KirbyDE for pointing me in the right direction for the profile time and helping to verify the code. And everyone who chipped in at vbulletin.org to help me figure out vB3.5's new ways of doing things. A special thanks goes out to Chen Avinadav for making the first local time hack for vB2 and allowing me to release it for vB3 and vB3.5. ;) Version Information: Version 1.0.0 --Initial release Version 1.0.1 --Fixed time where it didn't show right for many people. Thanks to Kirby for the fix. ;) Installation overview: Templates to edit: (3) --postbit --postbit_legacy --memberinfo Products to install: (1) |
Installed and working great on my test board. :)
|
You had doubts? LOL
|
lol, actually maybe I spoke to soon or it's probably something on my end, but the times are 4 hours earlier than they should be.
|
Make sure your Default Time Zone Offset in the Date and Time settings in the vBulletin Options is set at your true server time. ;)
|
Quote:
http://www.britfugees.com/vb.jpg http://www.britfugees.com/server.jpg |
Also make sure that the time zone is correct in your user settings
User CP / Edit options |
Is it off both in the postbit AND the profile?
|
Quote:
|
Does the time show right in the footer?
|
Quote:
I could pm you the info to access my test board if you would like. |
Well my test one is behind by 10 hours...yes footer time is right and usercp & admincp times r the same..:(
|
Seems to work when using ENGLISH,
but it gives me weird percentage things when I switch to KOREAN (my default language pack): Quote:
thoughts suggestions? |
hmmm...
very useful, but I have to uninstall for now. I got the wrong time too. (it SEEMS to be adding the forum default time and the USER CP settings time). also, as I said, above it seems to break when using a different language pack (important for me cause I have a multilanguage site.) but DEFININTELY will install again when that get sorted out. good idea!! :D ^^ :D |
my time is out with this as well...
mine is set at GMT, yet in the postbit, its GMT +1 on the index, the time displays correctly however.... |
*instaled* BUT I only instaled the templeate mod for memberinfo. It will clutter up the postbits IMO.
|
Quote:
|
Quote:
|
any ideas why this is happening?
Quote:
weirdness |
Quote:
if i set my user cp settings to the same as the board...ie....GMT...and set the DST setting to whatever option, it makes no difference.. trust me, it doesnt work.. always stays 1 hour ahead of the correct time.... |
Sorry Boofo can't work it out at all, still big time difference so had to remove.
|
Seems like everyones having the problem mate....
we cant ALL be getting the settings incorrect???? *EDIT* REMOVED |
Think about that statement, not everyone is having the same problem. Only those that are having a problem reported it here. Myself and a few others are not having any problem at all, so there must be an answer somewhere and I will find it. ;)
Is anyone having problems using Windows on their server? We have to start somewhere, I guess. |
jeez man, dont have babies!!
im not critizing it at all, i appreciate the work u do on here... if i didnt post, then u wouldnt be aware of the problem.... |
Same problems as others are having, VB Reports correct time in footer however your addon shows it 8 hours off what it's susposed to be. My webserver's running FreeBSD.
|
You should at least put a specific place where to put it in the Postbit and Postbit legacy.
|
Everybody's postbit is not the same as mine. It is up to you where you want to use it.
|
Hi Boofo,
Yes, same here. We are 7 hours off. All settings correct on the server and user control panel. |
This is wierd. It works right for me and some others and doesn't for the rest of you. I am stumped, although I'm sure I will get it figured out.
|
Yes i have the same problem as evryone else
|
it just seems to be showing the server time which is -4 GMT I have set this on the settings, and in my options i have put GMT with day light savings active. It doesn't work.
|
Nope Boofo, it is not working. I set the default time to eastern time seeing as my servers are located in New York. I checked with one of my mbers and his time is listed as 9:18PM when it is 3:18 there. As I said before I only installed this in my meber info tepmplate.
|
Quote:
|
Quote:
For example its 18:00 and my setting is on GMT, my local time is showing 14:00. I then go into usercp and change my setting from GMT to GMT+4 my time now shows 18:00 which is the correct time BUT my settings are not correct, they are set to GMT+4 when i live in UK which is GMT. Doe this help? |
So basically to get the time to show correctly I have to put my settings 4 hours ahead of what they actually are as my server is 4 hours behind. But now the time at the bottom of the vbuklletin pages are 4 hours ahead. lol!!
|
The setting in my vBulletin Options are what the server time is at. My server is set at GMT, although I am in CST (USA). So I set my vBulletion Options time at GMT, which is the actual server time. Try setting the vB options setting to your actual sever time and see if that makes it right then.
|
The time is probably 4 hours out because the code does not take into account the local servers timezone. It needs to be extracted using date('Z', TIMENOW) and applied as a correction.
I would also consider removing this from the code ; Code:
if (substr($userinfo['tzoffset'], 0, 1) != '-') |
Quote:
|
Quote:
|
Quote:
|
All times are GMT. The time now is 07:57 PM. |
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:
|