miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Photo album addon for miniBB Attract your miniBB-community, letting members publish their own photos with the Photo album add-on!
How To miniBB Community Forum / How To /
Short link for this topic:

Setting up time difference / zones ( $timeDiff setting )

 Page Page 1 of 2:  1  2  »» 
Author DrizzlyBritman
Forums Member
#1 | Posted: 29 Jul 2003 01:03
Hi, I'm in the UK, my server is in the US all posts show US time. I want it so they are in GMT. Read this. Is that the only way to adjust the time difference?

Thanks
Author Team
8-)
#2 | Posted: 29 Jul 2003 10:32
$timeDiff in setup_options
Author DrizzlyBritman
Forums Member
#3 | Posted: 29 Jul 2003 15:03
$timeDiff=21600;

Is that minutes?
Author Team
8-)
#4 | Posted: 29 Jul 2003 15:14
It is always nice to ->>> RTFM <<<--
Author DrizzlyBritman
Forums Member
#5 | Posted: 29 Jul 2003 15:22
:D

lol
Author DrizzlyBritman
Forums Member
#6 | Posted: 29 Jul 2003 15:38 | Edited by: DrizzlyBritman
OK sorted the time difference. 5 hours = 18000 but nothing has changed. posts are still showing 5 hours behind local time.

oops. nevermind, forgot to remove the //

DOH!

Thanks
Author Team
8-)
#7 | Posted: 29 Jul 2003 15:42 | Edited by: Team
ok.
Author Anonymous
Guest
#8 | Posted: 13 Nov 2003 02:44
FYI:
I was able to go in reverse via:
$timeDiff=-54600
I needed to go backwards since my server is in Hong Kong and my site is in CA. in USA. This fixed the date being a day ahead of most of my members.

I hope this might help somebody
Author manuela
Forums Member
#9 | Posted: 10 Feb 2004 09:17
I want to change the time difference (I am one hour ahead of the default time).

I tried modifying it by changing //$timeDiff=25200; (I think I added one extra hour by doing this).

But it does not work.....

What am I doing wrong?
Author Team
8-)
#10 | Posted: 10 Feb 2004 10:28
Uncomment the string (remove //)
Author manuela
Forums Member
#11 | Posted: 10 Feb 2004 15:44
thank you, that solved the trick!
Author Ojlert
Forums Member
#12 | Posted: 20 Dec 2005 21:37
Will it be very bad for the server and forum performance if one chooses to display a different time zone than the standard server time?
Author Team
8-)
#13 | Posted: 21 Dec 2005 10:39
It will be not very bad, however, there are some additional resources requested. In general, what do you mean by "if one chooses to display"? We have no such setting for individual users...
Author tuvi
Forums Member
#14 | Posted: 21 Dec 2005 21:08
Where do I change in the script... to be able to display two time zones side-by-side?

For example:

Posted: 20 Dec 2005 21:37 (18:37)
Author Team
8-)
#15 | Posted: 21 Dec 2005 22:40
You can use parseMessage() function. Paste this in bb_plugins.php:

function parseMessage(){
$timeDiff=3600; //time difference in seconds
$GLOBALS['secondTime']=' ('.date('H:i', strtotime($GLOBALS['cols'][2])+$timeDiff).')';
return;
}

then paste in templates/main_posts_cell.html:

{$secondTime}
 Page Page 1 of 2:  1  2  »» 
How To miniBB Community Forum / How To / Setting up time difference / zones ( $timeDiff setting ) Top
Your Reply Click this icon to move up to the quoted message

» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
miniBB Community Forum Powered by Free Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts