Verfasst: 31.10.2008 10:46
Und ich erst...HEADLINE hat geschrieben:So, jetzt werde ich mich erst mal für `ne Zeit entspannt zurück lehnen und auf die nächste Zeitumstellung (Sommerzeit) warten!

phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Und ich erst...HEADLINE hat geschrieben:So, jetzt werde ich mich erst mal für `ne Zeit entspannt zurück lehnen und auf die nächste Zeitumstellung (Sommerzeit) warten!
Nur, wenn sie in der derselben Zeitzone leben.HEADLINE hat geschrieben:Da bin ich nochmal!
Also wenn sich bei mir im Board neue User registrieren, ist bei denen bei den Einstellungen nicht "Automatische Sommerzeit" gewählt, obwohl bei den Boardeinstellungen "Automatische Sommerzeit" auf "Ja" steht!
Sollte diese Einstellung nicht auch bei neuen Usern übernommen werden?
ucp_register.phpHEADLINE hat geschrieben:Welche Datei ist dafür verantwortlich? .....damit ich die ggf. tausche bzw. den geänderten Code kontrolliere.
Code: Alles auswählen
// Try to manually determine the timezone and adjust the dst if the server date/time complies with the default setting +/- 1
$timezone = date('Z') / 3600;
if ($config['board_timezone'] == $timezone || $config['board_timezone'] == ($timezone - 1))
{
$is_dst = ($config['board_dst']) ? 2 : 0;
$timezone = (date('I')) ? $timezone - 1 : $timezone;
if (!isset($user->lang['tz_zones'][(string) $timezone]))
{
$timezone = $config['board_timezone'];
}
}
else
{
$is_dst = 0;
$timezone = $config['board_timezone'];
}
Was gibt er denn aus bei einem echo date('Z')?HEADLINE hat geschrieben:Habe eben den o.a. Code in der includes/ucp/ucp_register.php kontrolliert.......ist alles korrekt.
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
echo '$timezone = ' . date('Z') / 3600 . '<br>$config[\'board_timezone\'] = ' . $config['board_timezone'];
?>