![]() |
Link is right. All you should need to do is make suure the server is set to the correct timezone and see that DST is set to NO (for now) in the Admin CP. After that it should all be automatic, I think.
Natch, is your linear local time working all right? It was when we fixed it. Is it still ok? |
Quote:
Since the last edit, all of Linear, Hybrid and Threaded modes show the localtime at -1 of what it should be, but in a PM from me, the localtime is accurate. |
Take the last edit out then until I can look at it more closely and try to figure out what is going wrong. Let me know if the linear time is showing right again after you remove the last code, will you, please?
And how is it in the profile? |
localtime is correct in Profile:
After removing that code, the localtime is still one hour early in showthread... This is what I still have left in showthread.php - before PHP Code:
PHP Code:
|
Didn't you say yesterday that when we added the DST code, that it fixed it for you? And everything was showing the right time? If that was the case, then something happened somewhere when we added the extra code. But that should have fixed itself when we removed it. I'm at a total loss here. This has me totally stumped. On my site the time shows correct in all of the thread display modes, as well as everywhere else. I have had a few people test it on their sites, and they are reporting no time loss or gain.Please double-check everything and see if maybe you left something out somewhere. I don't know how to fix it when it works everywhere else. Anyone else have any ideas?
|
Sorry about this pal ... I'll look over this thread again and revert all the files back to prior to this hack - then work it thru ...
|
You don't need to apologize. I just want to help you get it working like it does for me and a lot of others. ;)
The file in the first post has all of the updates that you should need. It was updated after the DST code. I didn't add the hybred or threaded mode to that one yet until we can figure out what is going on. |
The only thing I can think of is that maybe the Auto-detection of [dstonoff] is not working properly in this file for some reason ...
I'm gonna do a Beyond Compare with the original vb# RC3 showthread ... I'll let u know what I find out ... |
Please keep me posted. It seems to work fine for me. Maybe something is different in your file.
|
If everyone is having all of these problems, I'm to the point where I'm about to suggest making a damned duplicate of vbdate that uses $post['timezoneoffset'] or whatever instead of $bbuserinfo['timezoneoffset'].
|
well that wasn't helpful - the only change to that file is the one from your attachment - and the time is still out.
Turning DST from auto to on to off changed nothing in Linear mode ... |
Turning DST to off in profile changes the other locations of the hack tho ...
|
Natch, try adding this:
PHP Code:
PHP Code:
Leave the User CP DST setting to Auto. |
No change mate ...
|
I guess I'm confused why it was working fine for you after we added the DST code and now it doesn't. I'm stumped.
|
Me too ... plus the fact that the same exact code works for PM's but not in showthread ...
|
http://www.mobileforces.org/forums/s...ead.php?t=2129 <- at the bottom of this thread, you can see that the time (now) for me is nearly 1500 hours, but it's actually nearly 1600 hours ...
But in a PM I just sent to myself, it says: Code:
[Local Time: 15:50] |
Quote:
|
Quote:
|
Natch, if you're up for it, I have one last thing to try. Take all of the code you added for this hack out of the showthread.php. Now, open up the functions_showthread.php and find:
PHP Code:
PHP Code:
|
If I take out the new code, and put in the old code it generates exactly the same time regardless ...
|
Did you take it out of the showthread.php and put it in the functions_showthread.php?
|
I just did that - and it's right on the money :)
Linear, Hybrid and Threaded modes all ok :) Great work Boofo! |
|
Now please, double check everything again, pm, profile, everything and let me know if everything is kosher now. I'll explain my mistake after I hear back from you. ;)
Oh, and make sure there is no code for this hack anywhere in the showthread.php now. |
All good Boofo :) https://vborg.vbsupport.ru/external/2004/08/6.gif again!
Check: showthread.php has no mods at all, it's the changes in includes/functions_showthread.php that do the trick :) |
Great! And thank you for bearing with me on this. I couldn't have done it without you. I will update the first post with the changes now. This should fix it for anyone else that has had any problems.
BTW: I gave you credit for all of your hard work in helping me track this down. Thank you very much, sir. Now I can get to work on my other hacks for my site. ;) |
[high]* Natch blushes ...
[/high] Looking forward to your work again ... and I appreciate your patience on the support :D |
Anytime, my firend. You are one heck of a beta tester. ;)
Stop by the site and register and I'll show you some of what I am working on now. The site's pretty dead, but I can get more coding done that way. ;) |
Quote:
Boofo, if you like, I could set you up with a temporary admin account on my board so you can have a looksee... |
Have you tried the code anywhere else? Can you install it for the pms and postbits and see if it is working right there? that might help us to narrow it down at least. The file in the first post has been updated with all of the changes.
|
OK I did that but I'm still getting the same times in PMs, usernotes and posts as I get in profiles... and that was after cleaning my cache and downloading the file about 15 minutes before this post was made.
|
If you downloaded and installed the new code for the functions_showthread.php, and it is still off, then I'm beginning to believe it has to be your server time setting is off in the Admin CP. With the new code changes, how far off are we still?
|
As far as I'm aware, as I've said before, there is no longer such an option (vBulletin doesn't need that manually set in the admin cp any more) and in any case everyone's regular vB times show correctly. Could you point me exactly where you mean please.
|
Default Time Zone Offset in the Date and Time Options in the Admin CP under vBulletin Options. ;)
|
Ah yes. I knew about that but that's not server time. Mine is set at -5 and I've said I can't give you a straight 'how many hours out' reply because it is different for each timezone. ie, EST is correct.
|
Disregard my last post. I've spotted something different. Times are now all 2 hours behind.
|
What did you spot? Maybe it is interfering with this?
Where are you located and is DST in effect there right now? |
No, it's just the update. Before the times screwed up pending on area and now they're all 2 hours behind.
|
Try turning DST off in the Admin CP and make sure it is set to Automatically detec DST settings in YOUR user cp and tell me if that does anything.
Don't lose faith. We'll get it working for you. Everyone else seems to be all fixed up. We'll get you there, too. ;) |
All times are GMT. The time now is 04:46 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:
|