minibb®
Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon! Click here to read more.
Captcha Addon for miniBB
Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
How To miniBB Community Forum / How To /

Setting up time difference / zones ( $timeDiff setting )

 Page:  1  2  »» 
DrizzlyBritman
Forums Member
#1 | Posted: 29 Jul 2003 01:03
Reply 
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
Team
8-)
#2 | Posted: 29 Jul 2003 10:32
Reply 
$timeDiff in setup_options
DrizzlyBritman
Forums Member
#3 | Posted: 29 Jul 2003 15:03
Reply 
$timeDiff=21600;

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

lol
DrizzlyBritman
Forums Member
#6 | Posted: 29 Jul 2003 15:38 | Edited by: DrizzlyBritman
Reply 
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
Team
8-)
#7 | Posted: 29 Jul 2003 15:42 | Edited by: Team
Reply 
ok.
Anonymous
Guest
#8 | Posted: 13 Nov 2003 02:44
Reply 
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
manuela
Forums Member
#9 | Posted: 10 Feb 2004 09:17
Reply 
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?
Team
8-)
#10 | Posted: 10 Feb 2004 10:28
Reply 
Uncomment the string (remove //)
manuela
Forums Member
#11 | Posted: 10 Feb 2004 15:44
Reply 
thank you, that solved the trick!
Ojlert
Forums Member
#12 | Posted: 20 Dec 2005 21:37
Reply 
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?
Team
8-)
#13 | Posted: 21 Dec 2005 10:39
Reply 
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...
tuvi
Forums Member
#14 | Posted: 21 Dec 2005 21:08
Reply 
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)
Team
8-)
#15 | Posted: 21 Dec 2005 22:40
Reply 
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:  1  2  »» 
Your reply
Bold Style  Italic Style  Image Link  URL Link 


» 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, be sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
Online now: Guests - 30
Members - 0
Most users ever online: 191 [24 Dec 2007 14:33]
Guests - 191 / Members - 0

Forums are powered by miniBB®