vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Local time and date in post, pm, usernotes and profile v1.5 (https://vborg.vbsupport.ru/showthread.php?t=60863)

Boofo 01-30-2004 01:06 AM

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?

Natch 01-30-2004 01:17 AM

Quote:

Originally Posted by Boofo
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?

Sorry mate - but no.

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.

Boofo 01-30-2004 01:21 AM

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?

Natch 01-30-2004 01:36 AM

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:

        $post['musername'] = fetch_musername($post);
        
$post['islastshown'] = ($post['postid'] == $lastpostid);
        
$post['attachments'] = &$postattach["$post[postid]"]; 

I have
PHP Code:

// Local Date and Time in Post
        
$post['tzoffset'] = $post['timezoneoffset'];
        if (
$post['dstonoff'])
        {
            
// DST is on, add an hour
            
$post['tzoffset']++;
        }
        
$post['localtime'] = date($vboptions['timeformat'], TIMENOW+($post['tzoffset']-$vboptions['timeoffset'])*3600);
        
$post['localdate'] = date($vboptions['dateformat'], TIMENOW+($post['tzoffset']-$vboptions['timeoffset'])*3600);
// Local Date and Time in Post 


Boofo 01-30-2004 01:43 AM

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?

Natch 01-30-2004 01:55 AM

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 ...

Boofo 01-30-2004 02:05 AM

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.

Natch 01-30-2004 02:27 AM

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 ...

Boofo 01-30-2004 02:31 AM

Please keep me posted. It seems to work fine for me. Maybe something is different in your file.

Link14716 01-30-2004 02:33 AM

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'].


All times are GMT. The time now is 11:44 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
  • Page Generation 0.01112 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete