vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   change timezone for ALL members (https://vborg.vbsupport.ru/showthread.php?t=243581)

NeXuM 05-30-2010 09:18 AM

change timezone for ALL members
 
I have just changed the default timezone of my forum. But i have 20,000 registered members. I would like to change the timezone for all of them

could anyone give me a SQL command to set the timezone of ALL my members to UTC +1h00

thanks a lot!

BirdOPrey5 05-30-2010 02:01 PM

UPDATE user SET `timezoneoffset` = 1
Be sure to use the prefix in front of 'user' if your forum uses prefixes.
ALWAYS Backup your table /database before making such a change.
This will change it for every member of your forum- don't you have members that are not in your timezone?

Boofo 05-30-2010 02:44 PM

Changing the forum timezone will not affect your members timezones. It only affects unregistered/not logged in users. There is nothing you need to do.

NeXuM 05-30-2010 08:07 PM

Quote:

Originally Posted by Boofo (Post 2045561)
Changing the forum timezone will not affect your members timezones. It only affects unregistered/not logged in users. There is nothing you need to do.

I don't want to change the timezone only for unregistered/not logged in users. I also want to change it for all members registered on my forum

Quote:

UPDATE user SET `timezoneoffset` = 1
where to i define the timezone ?

Boofo 05-30-2010 08:50 PM

If they are not all from the same timezone you are probably going to piss a bunch of them off.

BirdOPrey5 05-30-2010 09:05 PM

Quote:

Originally Posted by NeXuM (Post 2045688)
I don't want to change the timezone only for unregistered/not logged in users. I also want to change it for all members registered on my forum


where to i define the timezone ?

the timezoneoffset = 1 is 'defining' the offset as +1... if it was +8 it would be timezoneoffset = 8... for me, east coast usa, it's timezoneoffset = -5.

Quote:

Originally Posted by Boofo (Post 2045709)
If they are not all from the same timezone you are probably going to piss a bunch of them off.

This... The timezone is supposed to be locally set by your users to their time... there should never be a reason to change this unless a large geographical area voted themselves into a new time zone.

NeXuM 07-24-2010 06:28 PM

hi again,

i have one more question

how can i enable the option "automatically switch to daylight saving time" for all users of the forum with a sql command ?

thanks!

BirdOPrey5 07-24-2010 06:38 PM

That's a tough one, I don't see any field for this in the database :(

Boofo 07-24-2010 07:02 PM

Quote:

Originally Posted by NeXuM (Post 2073969)
hi again,

i have one more question

how can i enable the option "automatically switch to daylight saving time" for all users of the forum with a sql command ?

thanks!

I'm not sure if this is what you are looking for or not. But if you do use it, make sure the backup the db first as I can not guarantee anything. Also, if you do try it. let me know if it does what you are wanting. The thread for this is at the following URL:

http://www.vbulletin.com/forum/showt...=1#post1197837

Code:

UPDATE user SET options=options + 128 WHERE NOT(options & 128)

NeXuM 07-24-2010 07:07 PM

Code:

On: UPDATE user SET options=options + 64 WHERE NOT(options & 64);
looks like what i need

but will it alter other options set by members ?


All times are GMT. The time now is 01:15 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.01040 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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