Serverzeit / Webpage Zeit

  • Ich Habe folgendes problem


    Laut Server nutze ich diese Zeit
    Current default time zone: 'Europe/Berlin'
    Local time is now: Fri Jul 8 23:50:38 CEST 2011.
    Universal Time is now: Fri Jul 8 21:50:38 UTC 2011.


    http://fdtd.tk/
    http://fdtd.tk/guild/
    wird mir unten 21:50 angezeit -.-

  • Und was ist nun das Problem? Die Uhrzeit stimmt doch!?


    Falls das Problem ist, dass auf der Webseite die UTC angezeigt wird, dann brauchen wir schon ein paar Informationen mehr von Dir. Du könntest ja mal den Code posten, der die Zeit ausgibt. Die Angabe, um welche Sprache es sich handelt, würde evtl. auch schon helfen ;)

  • Joomla hat im Adminbereich folgende einstellung:


    Zeitzone

    • Serverzeitzone *Berlin


    Siehe Anhang


    Der Templett-Code


    [PHP]<?php
    defined( '_JEXEC' ) or die( 'Access to this location is RESTRICTED.' );
    echo '<?xml version="1.0" encoding="utf-8"?'.'>';
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
    <head>
    <jdoc:include type="head" />
    <?php require("head_includes.php"); ?>
    </head>


    <body>
    <div id="wrapper">
    <div id="bg_up">
    <div id="masthead_container">
    <div id="masthead">
    <?php if (($this->params->get('showGuildName')) !=0) : ?>
    <a id="guild_name" href="index.php" style="position:relative; color: #<?php echo $this->params->get('FontColor');?>; ; font-size:<?php echo $this->params->get('FontSize');?>px; z-index:5;"><?php echo $this->params->get('GuildName');?></a>
    <?php endif;?>
    <?php if (($this->params->get('useFlashHeader')) !=0) : ?>
    <div style="position:absolute; top:0; left:0; z-index:0;">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24"
    width="1000" height="400">
    <param name="movie" value="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/fl/wow3_header.swf" />
    <param name="quality" value="high" />
    <param name="menu" value="false" />
    <param name="wmode" value="transparent" />
    <param name="allowScriptAccess" value="sameDomain" />
    <!--[if !IE]> <-->
    <object data="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/fl/wow3_header.swf"
    width="1000" height="400" type="application/x-shockwave-flash">
    <param name="quality" value="high" />
    <param name="menu" value="false" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
    <param name="wmode" value="transparent" />
    The browser should render some flash content, not this. Go to Adobe Page and Download Adobe Flash Player Plugin.
    </object>
    <!--> <![endif]-->
    </object>
    </div>
    <?php endif;?>
    </div>
    </div>
    <div id="container">
    <?php if($this->countModules('position-1')) : ?>
    <div id="topmenu">
    <jdoc:include type="modules" name="position-1" />
    </div>
    <?php endif; ?>
    <div id="page_content">
    <div id="content_up">
    <div id="content_up_left">
    <?php if($this->countModules('position-2')) : ?>
    <div id="breadcrumbs">
    <jdoc:include type="modules" name="position-2" />
    </div>
    <?php endif; ?>
    <div id="content_up_right">
    <?php if($this->countModules('position-0')) : ?>
    <div id="search">
    <div id="search_inner">
    <jdoc:include type="modules" name="position-0" />
    </div>
    </div>
    <?php endif; ?>
    </div>
    </div>
    </div>
    <?php if($this->countModules('wow3-slider')) : ?>
    <div id="wow3-slider"><jdoc:include type="modules" name="wow3-slider" /></div>
    <?php endif; ?>
    <?php if($this->countModules('position-7')) : ?>
    <div id="sidebar_left">
    <jdoc:include type="modules" name="position-7" style="wowround_left" />
    </div>
    <?php endif; ?>
    <?php if($this->countModules('position-8')) : ?>
    <div id="sidebar_right">
    <jdoc:include type="modules" name="position-8" style="wowround_right" />
    </div>
    <?php endif; ?>
    <div id="content_out<?php echo $contentwidth; ?>">
    <?php if($this->countModules('position-3 or position-4')) : ?>
    <div id="user_modules1">
    <?php if($this->countModules('position-3')) : ?>
    <div id="user1">
    <jdoc:include type="modules" name="position-3" style="wowround" />
    </div>
    <?php endif; ?>
    <?php if($this->countModules('position-4')) : ?>
    <div id="user2">
    <jdoc:include type="modules" name="position-4" style="wowround" />
    </div>
    <?php endif; ?>
    </div>
    <?php endif; ?>
    <?php if($this->countModules('position-5')) : ?>
    <div id="top">
    <jdoc:include type="modules" name="position-5" style="wowround" />
    </div>
    <?php endif; ?>
    <div id="maincontent">
    <jdoc:include type="message" />
    <jdoc:include type="component" />
    </div>
    </div>
    </div>
    <div class="clr"></div>
    <div id="content_down">
    <div id="content_down_left">
    <?php if (($this->params->get('useFlashHeader')) !=0) : ?>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24"
    width="1000" height="20">
    <param name="movie" value="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/fl/content_down.swf" />
    <param name="quality" value="high" />
    <param name="menu" value="false" />
    <param name="wmode" value="transparent" />
    <param name="allowScriptAccess" value="sameDomain" />
    <!--[if !IE]> <-->
    <object data="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/fl/content_down.swf"
    width="1000" height="20" type="application/x-shockwave-flash">
    <param name="quality" value="high" />
    <param name="menu" value="false" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
    <param name="wmode" value="transparent" />
    The browser should render some flash content, not this. Go to Adobe Page and Download Adobe Flash Player Plugin.
    </object>
    <!--> <![endif]-->
    </object>
    <?php endif; ?>
    </div>
    </div>
    <div id="container2">
    <?php if($this->countModules('position-9 or position-10')) : ?>
    <div id="user_modules2">
    <?php if($this->countModules('position-9')) : ?>
    <div id="user5">
    <jdoc:include type="modules" name="position-9" style="wowround" />
    </div>
    <?php endif; ?>
    <?php if($this->countModules('position-10')) : ?>
    <div id="user6">
    <jdoc:include type="modules" name="position-10" style="wowround" />
    </div>
    <?php endif; ?>
    </div>
    <?php endif; ?>
    <div id="footer">
    <div id="date"><p><?php echo $date," - ",$time; ?></p></div>
    <div id="copyright_info">
    <p><?php echo $this->params->get('CopyrightInfo'); ?></p>
    </div>
    <?php if($this->countModules('position-6')) : ?>
    <jdoc:include type="modules" name="position-6" />
    <?php endif; ?>
    </div>
    <div class="clr"></div>
    <p>Cataclysm is a trademark, and World of Warcraft and Blizzard Entertainment are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.</p>
    <p>This site is in no way associated with Blizzard Entertainment</p>
    <br></br>

    <p class="gotop"><a href="#">top</a></p>
    </div>
    </div>
    </div>
    </div>
    </div>
    <jdoc:include type="modules" name="debug" />
    </body>
    </html>[/PHP]

  • Ich hab zwar keine Ahnung von Joomla, aber probier's mal hiermit:


    Ersetze

    PHP
    [COLOR=#000000][COLOR=#0000BB]<?php [/COLOR][COLOR=#007700]echo [/COLOR][COLOR=#0000BB]$date[/COLOR][COLOR=#007700],[/COLOR][COLOR=#DD0000]" - "[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000BB]$time[/COLOR][COLOR=#007700]; [/COLOR][COLOR=#0000BB]?>[/COLOR][/COLOR]


    durch

    PHP
    [COLOR=#000000][COLOR=#0000BB]<?php [/COLOR][COLOR=#007700]echo [/COLOR][COLOR=#0000BB]$date[/COLOR][COLOR=#007700],[/COLOR][COLOR=#DD0000] " - "[/COLOR][COLOR=#007700],[/COLOR][/COLOR][COLOR=#000000][COLOR=#0000BB] date[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"m.d.Y"[/COLOR][COLOR=#007700])[/COLOR][/COLOR][COLOR=#000000][COLOR=#007700]; [/COLOR][COLOR=#0000BB]?>[/COLOR][/COLOR]


    Die Zeitzone des Servers scheint ja zu stimmen, also müsste date() eigentlich etwas korrektes zurückgeben. Leider ist die PHP-Doku in diesem Punkt nicht wirklich aussagekräftig...