Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Get warnings with output "Date and Time"

engeldimoengeldimo Member Posts: 3
Hello people,

I want to put out Date and Time with this php-file:

[code]


New Document


<?php
print("<h1 style='font-family: comic sans ms'>Datum und Uhrzeit
");
$datum = date("d.m.Y");
$zeit = date("H:i");
echo $datum," - ",$zeit, " Uhr";
?>


[/code]

But I get this:

[b]Warning:[/b] date() [color=Blue][function.date][/color]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in C:xampphtdocsPHP-BuchKap1 imedate.php on line 8

[b]Warning:[/b] date() [color=Blue][function.date][/color]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in C:xampphtdocsPHP-BuchKap1 imedate.php on line 9

13.05.2011 - 17:37 Uhr

Could someone help me? I would be very glad.

Many Thanks,
engeldimo

Sign In or Register to comment.