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 ?

Boofo 07-24-2010 07:11 PM

Shouldn't touch anything else. I have run it in the past but never checked to see if it did what I was hoping for. Please let me know your results.

NeXuM 07-24-2010 10:49 PM

Looks like it worked ! thanks !

Boofo 07-25-2010 03:40 AM

First, what changed? And second, what is the "DST Currently On/Off" setting for the user in the Admin CP profile. Did that change with the query?

NeXuM 07-25-2010 08:27 AM

yes, all of my users seem to have "DST Auto-Correct" ON, and when they connect the DST goes on since we are currently in the DST period

Boofo 07-25-2010 09:44 AM

DST Auto Correct is always like that. You need to look at the "Is DST currently in effect" setting in the Admin CP user's profile (under Time Options) to see the setting I am referring to.

NeXuM 07-26-2010 01:32 AM

Quote:

DST Auto Correct is always like that. You need to look at the "Is DST currently in effect" setting in the Admin CP user's profile (under Time Options) to see the setting I am referring to.
My problem was that "DST auto correct" was disabled for all members (i modified the register page and took it out by error) so with the SQL command i posted earlier it switched it back on for all members. And the other option about DST currently in effect switched ON after the modification since we are currently in DST period

Boofo 07-26-2010 01:53 AM

Ok, you lost me there. The "DST currently in effect" is off on my site with new registrations. At least in the Admin CP, as that option is not available to users when they register. Or maybe I'm not understanding what is going on. I know that if I register someone through the Admin CP, I have to turn the currently in effect to ON, as it is OFF by default, no matter what the DST is at the time. Did the query I gave you set that to ON for all users? I ran it but it never changed the default in the Admin CP user profile if I made a new user. It confuses the hell out of me. ;)


All times are GMT. The time now is 08:10 AM.

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.03261 seconds
  • Memory Usage 1,753KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete