lowsaxonian
Neues Mitglied
[gelöst] Problem mit date()
Hallo Community,
dieses Mal habe ich ein PHP-Problem.
Folgenden Code(-schnipsel) habe ich in ein Kontaktformular eingetragen:
Der Server antwortet darauf mit
zu modifizieren. Dann meckert er nicht mehr ganz so dolle:
Kann mir bitte jemand sagen, was ich wie wo reinschreiben muss, damit es funzt.
Grüße
low
Hallo Community,
dieses Mal habe ich ein PHP-Problem.
Folgenden Code(-schnipsel) habe ich in ein Kontaktformular eingetragen:
PHP:
public function __construct($fieldset){
$this->log['time'] = date("Y-m-d H:i:s");
$this->loadForm($fieldset);
Ich habe versucht, diesen Schnipsel mitStrict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Berlin' for 'CET/1.0/no DST' instead in /is/htdocs/XXXXXXXXXXX_XXXXXXXXX/www/r&p/mailer/formmailer_class.php on line 358
PHP:
date_default_timezone_set
Die Datei ist eine *.php, Webspace ist php-fähig, es kommt alles an, nur an der Zeit wird rumgemeckert.Notice: date_default_timezone_set() [function.date-default-timezone-set]: Timezone ID 'Y-m-d H:i:s' is invalid in /is/htdocs/XXXXXXXXXXX_XXXXXXXXX/www/r&p/mailer/formmailer_class.php on line 358
Kann mir bitte jemand sagen, was ich wie wo reinschreiben muss, damit es funzt.
Grüße
low
Zuletzt bearbeitet: