hello all i have problem with time zone

<?php

if (!isset($_POST['submit'])) {

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>

<body>
  <div id="main">
    <div id="caption">Create new</div>
      <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
        name:<br/>
        <input type="text" name="title" size="40"/><br/><br/>
        News:<br/>
        <textarea name="newstext" rows="15" cols="67">

hello all i have problem with time zone

What is your problem? The code you posted does not hint at the issue. For that matter, code practically never speaks louder than a good explanation by the author. Please explain what problem(s) you're running into and what you've tried to do to remedy it.

i want to set my own country time zone.

i want to set my own country time zone.

That's a better explanation. Your first post did not even hint at that!

You'll want to use PHP's date_default_timezone_set() function. You can see the list of supported timezones here.

how to include Europe time in this code?

Member Avatar for diafol

Which European TZ? There are many.

how to include Europe time in this code?

All of the information you need can be found within the two links I provided you. For example, if you want to set the timezone to Europe/Rome:

date_default_timezone_set('Europe/Rome');

This isn't a random value, however. I linked you to the page before, but I'll do it again: all timezones supported are listed here.

commented: You can lead a horse to water... heh heh +14
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.