diff options
| author | Lester Caine <lester@lsces.co.uk> | 2007-02-27 17:28:42 +0000 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2007-02-27 17:28:42 +0000 |
| commit | a018365db31a46bf32405db8a6adf55187593661 (patch) | |
| tree | d86ea581ec6a87117328aa6d3a56da9412e76d2a /BitUser.php | |
| parent | 3f01559e74757a0bd5e1e86c18dd13ac6f00585a (diff) | |
| download | users-a018365db31a46bf32405db8a6adf55187593661.tar.gz users-a018365db31a46bf32405db8a6adf55187593661.tar.bz2 users-a018365db31a46bf32405db8a6adf55187593661.zip | |
Add a second browser side time display control.
site_display_utc matches the current selection
site_display_timezone stores a fixed time zone offset
This needs further expansion, but site_display_utc='Local' should work correctly
Diffstat (limited to 'BitUser.php')
| -rw-r--r-- | BitUser.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/BitUser.php b/BitUser.php index 5fab1a0..9858a0f 100644 --- a/BitUser.php +++ b/BitUser.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/BitUser.php,v 1.121 2007/01/06 09:46:27 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/BitUser.php,v 1.122 2007/02/27 17:28:42 lsces Exp $ * * Lib for user administration, groups and permissions * This lib uses pear so the constructor requieres @@ -12,7 +12,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: BitUser.php,v 1.121 2007/01/06 09:46:27 squareing Exp $ + * $Id: BitUser.php,v 1.122 2007/02/27 17:28:42 lsces Exp $ * @package users */ @@ -40,7 +40,7 @@ define("ACCOUNT_DISABLED", -6); * Class that holds all information for a given user * * @author spider <spider@steelsun.com> - * @version $Revision: 1.121 $ + * @version $Revision: 1.122 $ * @package users * @subpackage BitUser */ @@ -157,6 +157,9 @@ class BitUser extends LibertyAttachable { global $gBitSystem; if( !$this->getPreference( 'users_information' ) ) { $this->setPreference( 'users_information', 'public' ); } if( !$this->getPreference( 'messages_allow_messages' ) ) { $this->setPreference( 'messages_allow_messages', 'y' ); } + if( !$this->getPreference( 'site_display_utc' ) ) { + $this->setPreference( 'site_display_utc', 'Local' ); + } if( !$this->getPreference( 'site_display_timezone' ) ) { $server_time = new BitDate(); $this->setPreference( 'site_display_timezone', $server_time->display_offset ); @@ -530,7 +533,7 @@ class BitUser extends LibertyAttachable { $ret = TRUE; // set local time zone as default when registering - $this->storePreference( 'site_display_timezone', 'Local' ); + $this->storePreference( 'site_display_utc', 'Local' ); if( !empty( $_REQUEST['CUSTOM'] ) ) { foreach( $_REQUEST['CUSTOM'] as $field=>$value ) { |
