Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Get warnings with output "Date and Time"

engeldimoengeldimo Posts: 3Member
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.